-
Notifications
You must be signed in to change notification settings - Fork 186
Add Error Message for Explain and Run #872
Add Error Message for Explain and Run #872
Conversation
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
Codecov Report
@@ Coverage Diff @@
## develop #872 +/- ##
==========================================
Coverage 99.85% 99.85%
Complexity 2132 2132
==========================================
Files 215 215
Lines 4774 4774
Branches 313 313
==========================================
Hits 4767 4767
Misses 5 5
Partials 2 2 Continue to review full report at Codecov.
|
Is there any chance to add UT for this change? For Run error message, it would be more helpful to show the "reason" or "details" in message from backend if "status"=400. |
Do you mean display the response code in the output as well? Also I can try to add some UTs to check output matching on invalid queries/Explain |
I meant when the "status" as below is 400, the words in "reason" or "details" would help user figure out why:
|
This looks good enough, but I wonder would it be better if the error reason, detail, type and status are parsed and displayed into a paragraph than put the raw exception to the console log, since the output panel looks not a json style but only a plain text box. For example:
|
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 for the changes!
Added error messages for `Explain` aside from empty box. More detail in error messages for invalid queries on `Run`
Added error messages for `Explain` aside from empty box. More detail in error messages for invalid queries on `Run`
Added error messages for `Explain` aside from empty box. More detail in error messages for invalid queries on `Run`
Added error messages for `Explain` aside from empty box. More detail in error messages for invalid queries on `Run`
Issue #, if available:
#863
Description of changes:
Explain
for invalid queries. The error message consists of<API Response>: this query is not explainable.
this query is not runnable
to error messages forRun
on invalid queries.Invalid
Explain
on SQL:Invalid
Explain
on PPL:Invalid
Run
on SQL:Invalid
Run
on PPL:By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.