-
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
[Bug] Custom materialization not respected when passed via dbt_project.yaml or model.yaml #9703
Comments
Thanks for reporting this @rbs392 and providing a nice example @rbs392 👍 I was able to reproduce what you described using dbt-duckdb, and I've included a reproduction case for each below:
Both of these are stated as being supported options in the documentation here. ReprexCase 1:
|
Hi @dbeatty10 thanks for the update. Any timeline on when the issue is expected to be fixed? |
@rbs392 We don't have any timeline for this. In the meantime, we'd suggest using the workaround you identified. WorkaroundAdd the
def model(dbt, session):
dbt.config(materialized="test_mat")
return None |
Thanks for your PR in #8538 @devmessias ! We've got it queued up for an initial code review. |
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. |
due github-actions: The issue has been solved but the PR must be merged |
Is this a new bug in dbt-core?
Current Behavior
models/dummy/test.py
dbt_project.yml
When the
dbt.config(materialized="test_mat")
is removed from models/dummy/test.py the materialization code is not calledExpected Behavior
materialized config is respected when specified in dbt_project.yml and model.yml not only in the actual model
Steps To Reproduce
https://gist.github.com/rbs392/5e9d4a29aed63e385839c4f354ce0b56
Relevant log output
when run with materialized set in model file
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
dbt-databricks
The text was updated successfully, but these errors were encountered: