Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn_error_options with empty warn or error fields does not use silence #10452

Closed
gshank opened this issue Jul 16, 2024 · 0 comments · Fixed by #10453
Closed

warn_error_options with empty warn or error fields does not use silence #10452

gshank opened this issue Jul 16, 2024 · 0 comments · Fixed by #10453
Assignees

Comments

@gshank
Copy link
Contributor

gshank commented Jul 16, 2024

Current Behavior

If you use the example in the docs for silencing warnings:

  warn_error_options:
    error: # Previously called "include"
    warn: # Previously called "exclude"
    silence: # To silence or ignore warnings
      - TestsConfigDeprecation
      - NoNodesForSelectionCriteria

it doesn't work to silence TestsConfigDeprecation. You have to remove the empty error: and warn: fields.

Expected Behavior

The example should work for silencing warnings.

Steps to Reproduce

Copy the config into dbt_project.yml in a project with a "tests:" config.

Relevant log output

18:43:15  [WARNING]: Deprecated functionality
The `tests` config has been renamed to `data_tests`. Please see
https://docs.getdbt.com/docs/build/data-tests#new-data_tests-syntax for more
information.

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant