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(planner): Support EXPLAIN ANALYZE statement to profile query execution #10023

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

leiysky
Copy link
Contributor

@leiysky leiysky commented Feb 13, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

A naive implementation of EXPLAIN ANALYZE statement.

In this PR, we introduced a framework to help us profile queries.

The processing time of processors is collected and accumulated and will be displayed along with the corresponding SQL operator.

For example:
image
image

This metric is helpful in figuring out which SQL operator is critical in most scenarios.

More metrics will be added later.

Closes #9927

@vercel
Copy link

vercel bot commented Feb 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Feb 13, 2023 at 4:06PM (UTC)

@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Feb 13, 2023
@leiysky leiysky marked this pull request as ready for review February 13, 2023 16:43
@BohuTANG BohuTANG merged commit 80b5d2d into databendlabs:main Feb 14, 2023
@leiysky leiysky deleted the explain-analyze branch February 14, 2023 03:32
@BohuTANG
Copy link
Member

Add doc: #10027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Support EXPLAIN ANALYZE statement to display query profile
3 participants