QuestionQ30

Verified

Consider this dbt_project.yml:

name: "jaffle_shop"  
version: "1.0.0"  
config-version: 2  
profile: "snowflake"  
model-paths: ["models"]  
macro-paths: ["macros"]  
snapshot-paths: ["snapshots"]  
target-path: "target"  
clean-targets:  
  - "logs"  
  - "target"  
  - "dbt_modules"  
  - "dbt_packages"  
models:  
  jaffle-shop:  
    +materialized: table  

…and this warning when compiling the project:

[WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources.  
There are 1 unused configuration paths:  
- models.jaffle-shop  

What is the root cause?

A run hook was defined in the jaffle_shop project with an incorrect regular expression.

Explanation

The models configuration is nested under jaffle-shop, but the project is named jaffle_shop. The model configuration key must match the project name for the configuration to apply to its models. The warning concerns an unused configuration path, not a run hook. (docs.getdbt.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!