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

Configure dbt's warn-error parameter to ignore some warnings #82

Closed
MattTriano opened this issue Feb 24, 2023 · 1 comment · Fixed by #109
Closed

Configure dbt's warn-error parameter to ignore some warnings #82

MattTriano opened this issue Feb 24, 2023 · 1 comment · Fixed by #109

Comments

@MattTriano
Copy link
Owner

dbt's warn-error option causes warnings to be treated as errors, and I added this option so that the user is forced to see these warnings. But while testing a fresh setup (in my distributed_data_where_house skeleton project), I discovered that dbt will raise warnings if there aren't any dbt nodes (aka "resources"; includes models) in paths defined in the dbt_project.yml file.

As I built the pipeline-update taskflow to automatically generate dbt models as the DAG runs, a fresh setup (that drops all of the included models) would always define paths to the dbt/models/ directories data_raw, clean, feature, dwh, and report but would only have model files in the data_raw dir at the time it would reach the first dbt-model-running script.

Per the dbt v1.4 changelog, it looks like it's possible to define which warnings should be raised as errors. Determine how to configure dbt to ignore the issue above (ideally tailored as narrowly as possible, so that other defined-but-unused paths still raise errors and get attention).

@MattTriano
Copy link
Owner Author

Reference material of note:

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