Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake Snowpipe: _dbt_copied_at field should use metadata$start_scan_time instead of current timestamp #281

Closed
dataders opened this issue Apr 10, 2024 · 1 comment · Fixed by #282

Comments

@dataders
Copy link
Collaborator

I suggest replacing the current _dbt_copied_at field which uses current_timestamp since Snowflake recommends against using that function in a Snowpipe.

https://community.snowflake.com/s/article/Incorrect-timestamp-in-Snowpipe-while-using-current-timestampfunction

https://docs.snowflake.com/en/user-guide/data-load-snowpipe-ts#load-times-inserted-using-current-timestamp-earlier-than-load-time-values-in-copy-history-view

Originally posted by @jtmcn in #239 (comment)

@dataders
Copy link
Collaborator Author

dataders commented May 1, 2024

resolved by #282

@dataders dataders closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant