Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svdimchenko committed Sep 25, 2023
1 parent cd4837a commit 5401574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/athena/macros/utils/timestamps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% macro cast_timestamp(timestamp_col) -%}
{%- set config = model.get('config', {}) -%}
{%- set table_type = config.get('table_type', 'glue') -%}
{%- if table_type == 'iceberg' and not model.is_view -%}
{%- if table_type == 'iceberg' and not config.get('materialized', 'table') == 'view' -%}
cast({{ timestamp_col }} as timestamp(6))
{%- else -%}
cast({{ timestamp_col }} as timestamp)
Expand Down

0 comments on commit 5401574

Please sign in to comment.