-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
The CLI panics when passing an invalid explain query #4429
Conversation
Hi @HaoYang670 please check the PR
|
Could we add a test for this? |
Thank you for your contribution @comphead . And the error message printed in CLI is created when generating physical plan: Generally, we don't want to return an internal error to user, because it means that there are bugs in our project. cc @andygrove. Should this bug be fixed in sqlparser-rs or in datafusion? |
Agree with @HaoYang670 , look like it should be fixed in sqlparser-rs. It's error during parse. |
I agree that the parser bug should be fixed in sqlparser-rs. It would also be nice to have a unit test for this change. |
Thanks @HaoYang670 @andygrove @jackwener added test |
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 @HaoYang670
Benchmark runs are scheduled for baseline = f8ec401 and contender = 0253459. 0253459 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #4378 .
Rationale for this change
What changes are included in this PR?
Replace panics in favor if Error
Are these changes tested?
Are there any user-facing changes?