-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve error messages to include the function name. #14511
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
Conversation
alamb
left a comment
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.
Thank you 💯 so much @Omega359 -- this is much better.
I made some suggestions to improve the wording of the errors but we can do that as a follow on PR (or never). This PR is already much better than it was
Words better this PR has. Co-authored-by: Andrew Lamb <[email protected]>
comphead
left a comment
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.
I would prefer the function name to be highlighted some how, it can uppercase or square brackets, otherwise the function name got lost in the message
my preference is the last version. |
Yeah, love it. Function name is not allowed to include special characters so it should be good |
|
Any other opinions on the function name highlight version? I'll wait to do the work till eod today in case there is a good reason not to go with # 5 |
comphead
left a comment
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.
lgtm thanks @Omega359
davisp
left a comment
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.
Just a +1 for going with option #5 on adding single quotes around the function name. Otherwise I'm +1.
|
Updates applied. |
|
Thanks everyone! |
|
Along with this PR from @Lordworms DataFusion error messages are getting downright friendly! |
Which issue does this PR close?
Rationale for this change
Function signature error messages do not include the function name making for debugging issues very difficult in a system with dataframes with hundreds of function calls.
What changes are included in this PR?
Updated error messages and tests.
Are these changes tested?
Yes
Are there any user-facing changes?
Unless you count updated error messages, no.