Changing Model Configuration
Learn how to customize model configurations in dbt for efficient data management.
We'll cover the following...
We'll cover the following...
Config blocks
dbt allows us to specify configurations for our models. One way to do so is to edit the dbt_project.yml file:
We can also change the configuration at the model level and override the configuration in the dbt_project.yml file by using “config blocks.” Here’s an example of a config block for the case where we want to keep the model file stored in our code repository but disabled:
dbt always applies configuration in the following order:
First, it looks at the model configuration.
If there’s no config block in the model file, it applies the project configuration.
Otherwise, it applies the default ...