-
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
[Feature] Add a behaviour change flag to disallow the legacy target_* configs on snapshots #11102
Comments
An alternative: This would have the double advantage of building in the place you intended without you needing to know to enable a specific behavior flag or remember that there's a new name. |
@dbeatty10 I think we need to maintain is there a desire to "sunset" (via a behavior change flag) the old jinja snapshot spec? or you're thinking narrowly sunset "target_schema" / "target_database"? i believe this applies to both the new snapshot YML spec and the old jinja-based one |
@graciegoheen that aligns with what I'm saying: treat I think this would have the advantage of preserving backwards-compatibility without needing the extra effort to "sunset" via a behavior change flag. What do you think? |
I'm saying we need to maintain the legacy behavior of |
I was not pitching that, no!
This was what I meant, and even then I was only meaning in the context of yaml-based snapshots. I was going to leave the jinja ones completely alone
As far as I can tell, the new schema and database configs aren't available on Jinja-based snapshots, right? So preventing people from defining target_schema in Jinja would be a problem. But if the new configs are available on the old snapshots, then I would be completely on board with blocking the old configs' use everywhere. |
Is this your first time submitting a feature request?
Describe the feature
I was just trying to create a YAML snapshot for the first time, and I accidentally went with the old
target_schema
config:Which meant that when I ran
dbt snapshot
, my snapshot was built intosnapshots
instead ofdbt_jlabes_snapshots
as I expected.To fix it, I had to use
schema
instead:I think we should let people block usage of the old target_schema and target_database configs (in YAML-based snapshots at minimum - this isn't available in the classic jinja ones right?) with a behaviour flag.
Describe alternatives you've considered
No response
Who will this benefit?
Are you interested in contributing this feature?
👎
Anything else?
No response
The text was updated successfully, but these errors were encountered: