-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(dbt): read dbt +meta
from +config
when present
#20296
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @rexledesma and the rest of your teammates on Graphite |
89b8db1
to
8d141c1
Compare
8d141c1
to
ff00b7c
Compare
Deploy preview for dagster-university ready! ✅ Preview Built with commit ff00b7c. |
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit ff00b7c. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would ditch the type annotation but otherwise looks good
python_modules/libraries/dagster-dbt/dagster_dbt/asset_utils.py
Outdated
Show resolved
Hide resolved
ff00b7c
to
1d756c0
Compare
## Summary & Motivation From https://docs.getdbt.com/reference/resource-configs/meta: > Depending on the resource you're configuring, meta may be available within the config property, and/or as a top-level key. (For backwards compatibility, meta is often (but not always) supported as a top-level key, though without the capabilities of config inheritance.) This affects sources, as `+meta` config inheritance is applied in the top level `+config` field, rather than in the top level `+meta` field. This change reads from `+config` when present to read `+meta`. Otherwise, we fall back to reading from the top level `+meta` field. ## How I Tested These Changes pytest
Summary & Motivation
From https://docs.getdbt.com/reference/resource-configs/meta:
This affects sources, as
+meta
config inheritance is applied in the top level+config
field, rather than in the top level+meta
field.This change reads from
+config
when present to read+meta
. Otherwise, we fall back to reading from the top level+meta
field.How I Tested These Changes
pytest