[Core] Disabling a model in a package in order to use your own version of the model #5094
Labels
content
Improvements or additions to content
dbt Core
The changes proposed in this issue relate to dbt Core
size: medium
This change will take up to a week to address
Link to the page(s) on docs.getdbt.com requiring updates
https://docs.getdbt.com/reference/resource-configs/enabled#disable-a-model-in-a-package-in-order-to-use-your-own-version-of-the-model
Tell us more about this update
It would be helpful if we add the content from dbt-labs/dbt-core#9762 (comment) as an additional option for folks to consider.
Reviewers/Stakeholders/SMEs
Doug E. Fresh 😎
Related GitHub issues
dbt-labs/dbt-core#9762
Additional information
After installing a package that includes models, the user may want to change the logic of one (or more) of the models.
We explain how here.
But it sounds like configuration in YAML files (like tests) still persist from the base package, which is undesireable for some users (see dbt-labs/dbt-core#9762 and this slack thread).
The instructions in dbt-labs/dbt-core#9762 (comment) serve as an alternative method to completely disable the package model, including its YAML configurations.
Another idea
💡 I didn't try out if adding your own YAML config for the overridden model is a sufficient alternative.
We should try that out though! It might be the most simple solution of all.
If it works, it would be like this:
dbt_project.yml
models/_models.yml
The text was updated successfully, but these errors were encountered: