Skip to content

Commit 4c86da9

Browse files
authored
Merge pull request #237 from ScalefreeCOM/tkiehn-patch-redshift-string-to-timestamp
cast redshift string_to_timestamp-result to timestamp default datatype
2 parents 82daaff + 285214a commit 4c86da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/supporting/string_to_timestamp.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
{%- endmacro -%}
2525

2626
{%- macro redshift__string_to_timestamp(format, timestamp) -%}
27-
CAST(TO_TIMESTAMP('{{ timestamp }}', '{{ format }}') AS TIMESTAMP)
27+
CAST(TO_TIMESTAMP('{{ timestamp }}', '{{ format }}') AS {{ datavault4dbt.timestamp_default_dtype() }})
2828
{%- endmacro -%}
2929

0 commit comments

Comments
 (0)