Skip to content
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

Global materialized config overrides more specific package config #3148

Open
1 task done
dbeatty10 opened this issue Apr 5, 2023 · 0 comments
Open
1 task done

Global materialized config overrides more specific package config #3148

dbeatty10 opened this issue Apr 5, 2023 · 0 comments
Labels
content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear

Comments

@dbeatty10
Copy link
Contributor

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates

Although it is mentioned in the docs in a few different places, it's still not super obvious to an end user how models: within dbt_project.yml will behave when there are installed packages:

dbt-labs/dbt-core#7277 has more context.

What part(s) of the page would you like to see updated?

Suggested improvements

  1. Review the pages above and determine if they should cross-link to each other or if there is common content to include in multiple pages
  2. Use the "callout" formatting where appropriate since some of the behavior is not intuitive
  3. Explicitly list the entire order of precedence (below) somewhere

Order of precedence for (model) configs

The order of precedence for configs is as follows (highest priority first):

  1. Configuration within your dbt project:
    1. config() Jinja macro within a model
    2. config resource property in a .yml file
    3. dbt_project.yml file, under the models: key -- deepest nested being highest priority
  2. Configuration within an installed package ("second verse, same as the first"):
    1. config() Jinja macro within a model
    2. config resource property in a .yml file
    3. dbt_project.yml file, under the models: key -- deepest nested being highest priority

I'm guessing that same precedence applies to some other resources like snapshots, seeds, etc as well, but didn't confirm/deny.

Additional information

No response

@dbeatty10 dbeatty10 added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear labels Apr 5, 2023
@dbeatty10 dbeatty10 changed the title Global materialization config overrides more specific package config Global materialized config overrides more specific package config Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear
Projects
None yet
Development

No branches or pull requests

1 participant