Skip to content

Commit

Permalink
use metadata for _dbt_copied_at in Snowpipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel McNierney committed Apr 10, 2024
1 parent 58fc3ce commit f627222
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 f627222

Please sign in to comment.