-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Downtime for incremental models on full-refresh runs (Snowflake) #1387
Comments
Just a follow up on this. I was looking into the code (it's the first time so I may have gotten this completely wrong) and it looks like you guys implement a non-destructive run as follows:
But I would assume truncating or dropping could be avoided all together by leveraging the
But maybe I'm missing a few subtleties. If the snowflake logic I outlined seems to make sense I'd be happy to help implement it. |
This is a dupe of #525, closing. @bastienboutonnet we intend to eventually remove the The root cause here is that we drop the table before re-building it in full-refresh mode. While |
Full refresh runs on incremental models on Snowflake result in either:
This is because Snowflake doesn't have transactions, so we can't do a nice swap within one.
Can we instead do some trickery around creating a "my_table__dbt_tmp" style materialization?
The text was updated successfully, but these errors were encountered: