-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add explain command #687
Add explain command #687
Conversation
Please add command usage examples in the main readme markdown |
done |
@@ -123,7 +125,8 @@ public LogicalPlan visitQuery(Query node, CatalystPlanContext context) { | |||
|
|||
@Override | |||
public LogicalPlan visitExplain(Explain node, CatalystPlanContext context) { | |||
return node.getStatement().accept(this, context); | |||
node.getStatement().accept(this, context); | |||
return context.apply(p -> new ExplainCommand(p, ExplainMode.fromString("simple"))); |
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.
what other explain types can we engage ?
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.
formatted
cost
codegen
extended
simple
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.
Can you please review the explain options ?
and also add an explain test to validate the expected result ? - it would be nice to add these parameters for the user to request...
the explain command supports now |
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
…PLSyntaxParser Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Signed-off-by: Kacper Trochimiak <[email protected]>
Description
Add explain command
Issues Resolved
#556
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.