The problem I’m having
I have followed the dbt docs on how to hide packages but to no avail. Each time I run a dbt command I get the following error:
14:58:01 [WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources.
There are 5 unused configuration paths:
- models.dbt_postgres
- models.codegen
- models.dbt_date
- models.dbt_expectations
- models.dbt_utils
This is my dbt_project.yml file:
models:
data_reporting:
+post-hook: '{{ grant_select_to_groups(this, ["data_readers", "data_team", "data_processors"]) }}'
+on_schema_change: "sync_all_columns"
sources:
tags: ['source']
bind: false
+schema: sources
post-hook:
- "{{ test_late_binding_view_in_dev() }}"
+docs:
node_color: "#F86F73" # red [Copper]
prep:
tags: ['prep']
bind: false
+schema: prep
post-hook:
- "{{ test_late_binding_view_in_dev() }}"
+docs:
node_color: "#232B2B" # soft black [Silver]
core:
tags: ['core']
bind: false
post-hook:
- "{{ test_late_binding_view_in_dev() }}"
+schema: core
+docs:
node_color: "#D89902" # yellow [Gold]
dwh:
+docs:
node_color: "#D89902" # yellow [Gold]
exports:
tags: ['reports']
+docs:
node_color: "#6E276C" # purple [Platinum]
reports:
tags: ['reports']
+docs:
node_color: "#6E276C" # purple [Platinum]
dbt_postgres:
+docs:
show: false
redshift:
+docs:
show: false
dbt_expectations:
+docs:
show: false
dbt_utils:
+docs:
show: false
codegen:
+docs:
show: false
dbt_date:
+docs:
show: false
One thing that is worth noting is that it doesn’t error for the redshift package. So I am not sure if it is related to the name I am giving these packages or something?
The context of why I’m trying to do this
To neaten up our company data dictionary … currently all packages appear for end users who needn’t explore them:
What I’ve already tried
I have tried numerous different YML hierarchies. The docs hierarchy is exactly what I am doing so I am wondering if there is something obvious I am missing or something different in our set up?
Some example code or error messages
There are 5 unused configuration paths:
- models.dbt_postgres
- models.codegen
- models.dbt_date
- models.dbt_expectations
- models.dbt_utils