-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
docs generation with error in schema.yml gives unhelpful error message #3470
Comments
Does this happen for any model or just when specifying |
@elgabito Thanks for opening the issue. I think I have a sense of what's going on here, though I do have a few clarifying questions:
If you're using this dbt-oracle plugin, I see this note in
So it's a known limitation that an incorrect database causes an error when generating the catalog. I also agree with your assessment that this should raise an error. As far as raising a more helpful error, there I'm less sure how to proceed. As in so many things in dbt, we can only do so much before actually running a query against the database. Oftentimes your best bet is targeted debugging:
There is another approach we could take: treat catalog generation more like relational cache construction, which has handling for missing objects. For instance, Snowflake's In this case, the goal isn't to move past the error uninterrupted, but rather to handle the vague error and raise a more descriptive one instead, since |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Signed-off-by: Thomas Sapelza <sapelza.thomas@gmail.com> Signed-off-by: Thomas Sapelza <thomas.sapelza@gknpm.com>
Describe the bug
When running dbt docs generate I would get the following output:
This is very difficult to troubleshoot! After hours of digging I realized I simply had an error in my schema.yml
Steps To Reproduce
Take any working model and edit the schema.yml - change the database to something that doesn't exist.
Execute dbt docs generate
Expected behavior
An error should clearly happen because it's incorrect, but a more helpful error message would be great!
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Windows 10
The output of
python --version
:Python 3.8.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: