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

Flag to fail on incorrect model name #1765

Closed
mgoldbas opened this issue Sep 17, 2019 · 2 comments
Closed

Flag to fail on incorrect model name #1765

mgoldbas opened this issue Sep 17, 2019 · 2 comments
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors!

Comments

@mgoldbas
Copy link

Describe the feature

Have a flag that will raise an error when passing models to dbt run and the model does not exist

Describe alternatives you've considered

  • A test run that will check to see that the models you passed exist
  • An additional script to check the models exist in DBT

Additional context

While passing several models to DBT, the engineer that builds the model may misspell the model. Thus the script will run, but there will be no indication that the model that is misspelled is missing or incorrect.

Who will this benefit?

Users running DBT in production environments

@mgoldbas mgoldbas added enhancement New feature or request triage labels Sep 17, 2019
@drewbanin drewbanin removed the triage label Sep 18, 2019
@drewbanin
Copy link
Contributor

Hey @mgoldbas - good idea!

dbt currently supports a --warn-error flag that will cause warnings to be raised as errors. We can make dbt emit a warning if a model specified in the --models selector does not exist. I think that this new warning in conjunction with --warn-error might address your use case.

Do you think that would work?

@drewbanin drewbanin added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Sep 18, 2019
@drewbanin
Copy link
Contributor

closing in favor of #2115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors!
Projects
None yet
Development

No branches or pull requests

2 participants