Skip to content

Commit

Permalink
Merge pull request #282 from jtmcn/jtmcn/external-tables/snf-copied-at
Browse files Browse the repository at this point in the history
Use metadata for _dbt_copied_at in Snowpipe
  • Loading branch information
dataders authored Apr 12, 2024
2 parents 790023d + c173a46 commit 772ae8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/plugins/snowflake/snowpipe/get_copy_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
metadata$filename::varchar as metadata_filename,
metadata$file_row_number::bigint as metadata_file_row_number,
metadata$file_last_modified::timestamp as metadata_file_last_modified,
current_timestamp::timestamp as _dbt_copied_at
metadata$start_scan_time::timestamp as _dbt_copied_at
from {{external.location}} {# stage #}
)
file_format = {{external.file_format}}
Expand Down

0 comments on commit 772ae8c

Please sign in to comment.