-
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-2374] [Bug] global materialization attribute overrides more specific package attributes #7277
Comments
It's nestled pretty deeply in the docs, but it is in there:
https://docs.getdbt.com/docs/build/packages#configuring-packages |
@sfc-gh-afedorov Thanks for opening this ! As @jtcohen6 mentioned, you are observing behavior that we expect, and I'll try to explain why. Order of precedenceThe order of precedence for configs is as follows (highest priority first):
ReasonOne purpose of the ExampleYou can quickly and easily disable all models from the models:
dbt_artifacts:
+enabled: false If the config across your dbt project and all the installed packages were fully flattened, then you would need to apply any overrides at the most granular level possible (model-by-model) in order for the overrides to take effect. SummaryI'm going to close this as "not planned" since this is the intended behavior rather than a bug. I've personally ran into this same thing before without realizing it, and I opened the following issue in a separate repo to warn when this situation arises: Also opened this issue to improve the docs: |
Got it, thanks for the thorough explanation and thinking this through. A warning would have been a good alternative in my case, as well. |
Is this a new bug in dbt-core?
Current Behavior
brooklyn-data/dbt_artifacts#284
when I define
this overrides a package's more specific
which seems like something that violates some general compartmentalization principle
Expected Behavior
more specific attribute definitions should override more general globally defined defaults
Steps To Reproduce
dbt_artifacts
installeddbt run --select dbt_artifacts
Relevant log output
first -
and then -
03:13:50 on-run-end failed, error: 03:13:50 001759 (42601): SQL compilation error: 03:13:50 INSERT statement's target must be a table
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
The text was updated successfully, but these errors were encountered: