-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support on_schema_change: full_refresh
mode
#154
Comments
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
I am still interested. Since my models run on ci/cd I have to manually pass full refresh flag to specific models via ci/cd. It's very inconvenient since first of all I must be aware that the schema has changed. |
Reopening as there's definitely still interest in this Switching team assignment from
|
I'm using incremental for some models, and on_schema_change: append_new_columns in dbt version 1.0.8, I do --full-refresh initially and run, the problem is that when I add new columns they don't appear in the destination table. What should I do? |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
This would be a much appreciated feature. |
Definitely still interest here! |
yeah this is a much needed feature if still in progress |
Co-authored-by: Jérémy Guiselin <[email protected]>
Sujay in Slack:
> Can we have a config for dbt full refresh on schema change for incremental modes?
I started writing a response in Slack, but figured it's better for visibility here!
This was definitely a goal of our initial implementation (#3288), and it's worth revisiting in the future.
It's a bit trickier than the other modes, because (on most databases):
on_schema_change
is notignore
(default), we compare column schemas and (depending on mode) adjust the existing column schemaIf we detected a change and wanted to trigger a full-refresh, we'd need to do either/both of:
where false limit 0
), rather than creating an actual temp table of new data. If the column schemas differ, proceed with full-refresh; otherwise, proceed as normal.Both are possible, it'll just take some work to get there. We should use this opportunity to clean up and modularize some of the incremental materialization logic in the process (no breaking changes).
The text was updated successfully, but these errors were encountered: