Skip to content

Commit

Permalink
Add CAST to timestamp_default_dtype to postgres__string_to_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
tkiehn authored Sep 20, 2024
1 parent f86a46a commit acf923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/supporting/string_to_timestamp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{%- endmacro -%}

{%- macro postgres__string_to_timestamp(format, timestamp) -%}
TO_TIMESTAMP('{{ timestamp }}', '{{ format }}')
CAST(TO_TIMESTAMP('{{ timestamp }}', '{{ format }}') AS {{ datavault4dbt.timestamp_default_dtype() }})
{%- endmacro -%}

{%- macro redshift__string_to_timestamp(format, timestamp) -%}
Expand Down

0 comments on commit acf923e

Please sign in to comment.