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 for dbt_project.yml configs which do not affect any models #691

Closed
drewbanin opened this issue Mar 11, 2018 · 2 comments
Closed

warn for dbt_project.yml configs which do not affect any models #691

drewbanin opened this issue Mar 11, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors!

Comments

@drewbanin
Copy link
Contributor

This happens far too frequently and dbt offers no help. It typically occurs because users do not include the project name in their models: dict, eg:

models:
  project_name:
    first_path:
      materialized: ephemeral

This is particularly confusing because 1) the models/ path is implicit in the hierarchical config, 2) the project name is required, but is not a part of the path to the file, 3) our docs here are probably insufficient.

dbt should handle these configurations in a better way, ideally without breaking backwards compatibility. A good first step could be to identify when configurations do not affect any models. It could also include a helpful hint if config paths are valid, but missing a project name.

@drewbanin drewbanin added the enhancement New feature or request label Mar 11, 2018
@drewbanin drewbanin self-assigned this Mar 11, 2018
@drewbanin drewbanin added the good_first_issue Straightforward + self-contained changes, good for new contributors! label Mar 12, 2018
@drewbanin
Copy link
Contributor Author

Fixed in #725

@kapoorsaumya08
Copy link

hi i am getting the same error despite having my model in place. stuck on this since 2 days.

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