Skip to content
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

feat: Explain command support #444

Merged
merged 11 commits into from
Nov 6, 2022
Merged

feat: Explain command support #444

merged 11 commits into from
Nov 6, 2022

Conversation

jiashenC
Copy link
Member

Add EXPLAIN support in the system.

@jiashenC
Copy link
Member Author

Can you @gaurav274 give a proofread of current implementation from parser to statement before I go to the optimizer? As we discussed, the explainable statement/operator/plan will always be embedded as an attribute in the current design.

@jiashenC jiashenC changed the title WIP: explain command support Explain command support Oct 28, 2022
@@ -75,6 +76,10 @@ def _bind_abstract_expr(self, node: AbstractExpression):
for child in node.children:
self.bind(child)

@bind.register(ExplainStatement)
def _bind_explain_statement(self, node: ExplainStatement):
self.bind(node.explainable_stmt)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, bind will create catalog entries. @gaurav274 This can be a consideration to move catalog operations to executors.

@xzdandy
Copy link
Collaborator

xzdandy commented Oct 31, 2022

Can you @gaurav274 give a proofread of current implementation from parser to statement before I go to the optimizer? As we discussed, the explainable statement/operator/plan will always be embedded as an attribute in the current design.

I think the idea of the current implementation works.

@xzdandy xzdandy mentioned this pull request Nov 1, 2022
@jiashenC jiashenC changed the title Explain command support [feat] Explain command support Nov 1, 2022
@jiashenC jiashenC changed the title [feat] Explain command support feat: Explain command support Nov 1, 2022
@gaurav274 gaurav274 merged commit 6f6db96 into master Nov 6, 2022
@gaurav274 gaurav274 deleted the explain-cmd branch November 6, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants