dbt Labs dbt-Analytics-Engineering Question Answer
You have created a model called stg_tasks and now you need to implement tests.
You provide this in schema.yml:
version: 2
models:
- name: stg_tasks
columns:
- name: completed_at
tests:
- not_null:
- config:
where: "state = 'completed'"
You receive this compilation error:
[WARNING]: Did not find matching node for patch with name 'stg_tasks' in the 'models' section of file 'models/example/schema.yml'
How can you change the configuration on the not_null test to fix this compiler error?
dbt Labs dbt-Analytics-Engineering Summary
- Vendor: dbt Labs
- Product: dbt-Analytics-Engineering
- Update on: Feb 8, 2026
- Questions: 65

