-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
RefinementMaintainer input neededMaintainer input neededenhancementNew feature or requestNew feature or request
Description
Is this a new bug in dbt-core?
- I believe this is a new bug in dbt-core
- I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
We got NoNodeForYamlKey warnings, so I wanted to make sure these get raised as errors and can't be merge as CI will block it.
But when I promote those with --warn-error-options, it just raises one error and does not display all. This would result in fixing one, running again and the next error would pop up.
Expected Behavior
I would expect this option to raise all the messages I previously got as warnings, to be raises an errors.
Steps To Reproduce
- Add a YML with some non existing models
- Run
dbt compile --show-all-deprecations --no-partial-parseto see all the warnings - Run
dbt compile --show-all-deprecations --no-partial-parse --warn-error-options '{"error": ["NoNodeForYamlKey"]}'and see that there is just one
Relevant log output
(.venv) ➜ dbt compile --show-all-deprecations --no-partial-parse
12:07:32 Running with dbt=1.11.2
12:07:37 Registered adapter: bigquery=1.10.2
12:07:41 [WARNING]: Did not find matching node for patch with name 'first' in the 'models' section of file 'models/intermediate/_schema.yml'
12:07:41 [WARNING]: Did not find matching node for patch with name 'second' in the 'models' section of file 'models/intermediate/_schema.yml'
12:07:41 [WARNING]: Did not find matching node for patch with name 'third' in the 'models' section of file 'models/intermediate/_schema.yml'
(.venv) ➜ dbt compile --show-all-deprecations --no-partial-parse --warn-error-options '{"error": ["NoNodeForYamlKey"]}'
12:06:03 Running with dbt=1.11.2
12:06:08 Registered adapter: bigquery=1.10.2
12:06:12 Encountered an error:
Compilation Error
[WARNING]: Did not find matching node for patch with name 'first' in the 'models' section of file 'models/intermediate/_schema.yml'Environment
- OS: Macos 26.2
- Python: 3.12
- dbt: 1.11.2
Also tested on dbt Cloud LatestWhich database adapter are you using with dbt?
bigquery
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
RefinementMaintainer input neededMaintainer input neededenhancementNew feature or requestNew feature or request