-
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
[CT-1301] Behavior change: full_refresh: true
config should respect --full-refresh, -f
flag
#6013
Comments
full_refresh: true
config should respect --full-refresh, -f
flagfull_refresh: true
config should respect --full-refresh, -f
flag
The only reason I could think of people using |
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. |
I think that it is worth keeping this issue active |
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. |
Commenting to keep it on! I still think that we could improve incremental models handling. |
@b-per I agree! I think we'd want to find some way to change the default here, without breaking existing users' projects. If you can think of a clever way to do that, without requiring another opt-in config ( This behavior would then also diverge from |
I had faced the same problem. Did anyone find any workarounds to achieve respect for the I tried things like
but it doesn't work. Seems that full_refresh cannot be set dynamically for some reasons |
https://docs.getdbt.com/reference/resource-configs/full_refresh
Current behavior
When configured,
full_refresh: true|false
means: "always/never full-refresh, and always ignore the --full-refresh flag"Added way back in #2438 / v0.18
Proposed change
full_refresh: true
should mean "always respect the --full-refresh flag"full_refresh: false
should mean "never full refresh, under any circumstances"That's trickier for intuition, and harder to explain, but definitely more desirable in terms of the behavior it enables. I'm not sure why you'd always want to full-refresh an
incremental
model; at that point it's really just atable
materialization.If this is set at the project level:
It's not possible to override that setting for one particular model ("actually I want this model to respect the
--full-refresh
flag"). This doesn't work as I'd hoped it might:Is this a breaking change?
Only for people who currently make use of
full_refresh: true
. Again, I'm not actually sure what the use case for doing that would be!The text was updated successfully, but these errors were encountered: