-
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
Improve Error Messaging for Invalid Source Arguments #1809
Improve Error Messaging for Invalid Source Arguments #1809
Conversation
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Eli Kastelein.
|
awesome, this looks great @CaptainEli!! Are you able to sign the attached CLA? If so, we can definitely merge this for 0.15.0 :D |
This looks pretty good to me -- going to kick off the CI suite now, but I think we'll me ready to merge this when the tests pass :) @cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
Great work @CaptainEli!! |
ack - there's just one pep8 issue here:
If you're able to make that line <= 79 characters, then we should be ready to go here :) |
@drewbanin thanks for the help. I've shortened it now 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CaptainEli (a great username, to be sure)! This is great, merging it for the 0.15.0 release :)
This pull request fixes #1660
This pull request enforces that exactly two arguments are provided to
source()
during compilation. If anything other than 2 arguments are given, a compiler error is now raised. This is an improvement over the current state described in #1660, where the error messaging is unclear after providing a single argument tosource()
.#1660 also mentions adding better error messaging in
ref()
but it already seems satisfactory to me: https://github.com/fishtown-analytics/dbt/blob/dev/louisa-may-alcott/core/dbt/context/parser.py#L98-L107This is my first contribution to dbt so I will need help with the CI environment variables.
Thanks to @emilieschario for helping me with this.