Replies: 2 comments
-
This is a big idea, so I'm going to upgrade this to a Discussion. Here's some past discussion on related topics: Quick context: |
Beta Was this translation helpful? Give feedback.
-
Just to add to this but for an even simpler example, it is not currently possible to use variables directly within the |
Beta Was this translation helpful? Give feedback.
-
Is this your first time submitting a feature request?
Describe the feature
Currently it is possible to use a macro within the config block of model to make some of this configuration dynamic, such as based on a target or variable (see example here). If you try and use a macro directly within the
dbt_project.yml
however, you get an error.I understand these are parsed at different times, but I would like to be able to use a macro within the project yaml for model configs.
Describe alternatives you've considered
Manually adding the macro to each model file, but this is not possible for models in packages.
Who will this benefit?
Any user who wishes to (somewhat) dynamically control configs across models.
Are you interested in contributing this feature?
No response
Anything else?
There was a previous discourse post about this here: https://discourse.getdbt.com/t/how-can-i-add-model-configuration-using-a-macro-on-this-in-dbt-project-yml/5910
Beta Was this translation helpful? Give feedback.
All reactions