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

The explain of SQL output doesn't help #3608

Closed
killme2008 opened this issue Mar 28, 2024 · 0 comments
Closed

The explain of SQL output doesn't help #3608

killme2008 opened this issue Mar 28, 2024 · 0 comments
Assignees
Labels
C-user-experience Category User Experience

Comments

@killme2008
Copy link
Contributor

killme2008 commented Mar 28, 2024

What type of enhancement is this?

User experience

What does the enhancement do?

For example:

mysql> explain select * from test where i = 'hello2';
+---------------+--------------------------------------------------+
| plan_type     | plan                                             |
+---------------+--------------------------------------------------+
| logical_plan  | MergeScan [is_placeholder=false]                 |
| physical_plan | MergeScanExec: peers=[4415226380288(1028, 0), ]
 |
+---------------+--------------------------------------------------+

We just saw a MergeScan node, without any filter or table scan node etc. And we don't know what is_placeholder is in logical_plan or what peers means in physical_plan.

If we are using explain analyze, we don't get any info about whether the query uses the index or not:

mysql> explain analyze select * from test where i = 'hello2';
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| plan_type         | plan                                                                                                                                                                             |
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Plan with Metrics | MergeScanExec: peers=[4415226380288(1028, 0), ], metrics=[output_rows=1, greptime_exec_cost=0, first_consume_time=25.720291ms, finish_time=25.839667ms, ready_time=24.626125ms]
 |
+-------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I am uncertain whether it's intentional or simply another glitch.

Implementation challenges

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-user-experience Category User Experience
Projects
None yet
Development

No branches or pull requests

2 participants