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(execution-plan): refine execution plan #1561

Merged
merged 6 commits into from
Jul 31, 2023

Conversation

baurine
Copy link
Collaborator

@baurine baurine commented Jul 20, 2023

What Did

  • Show the execution plan text same as the explain analyze result.
  • Show the execution plan as table format
  • Adjust the different formats order
  • Make execution plan text always expand

Preview

Before

image

After

image

image

@ti-chi-bot ti-chi-bot bot requested a review from Renkai July 20, 2023 08:38
@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for tidb-dashboard failed.

Name Link
🔨 Latest commit 8c39528
🔍 Latest deploy log https://app.netlify.com/sites/tidb-dashboard/deploys/64c3361e9cf5920008188514

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for tidb-dashboard-for-dbaas failed.

Name Link
🔨 Latest commit 8c39528
🔍 Latest deploy log https://app.netlify.com/sites/tidb-dashboard-for-dbaas/deploys/64c3361e924129000804969b

@baurine baurine changed the title feat(execution plan): refine execution plan feat(execution-plan): refine execution plan Jul 20, 2023
@baurine baurine marked this pull request as draft July 20, 2023 08:38
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #1561 (8c39528) into master (22bb50e) will decrease coverage by 2.48%.
The diff coverage is 72.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1561      +/-   ##
==========================================
- Coverage   27.25%   24.78%   -2.48%     
==========================================
  Files          93      168      +75     
  Lines       10097    15003    +4906     
==========================================
+ Hits         2752     3718     +966     
- Misses       7165    11014    +3849     
- Partials      180      271      +91     
Flag Coverage Δ
backend_integration 9.09% <50.00%> (?)
backend_ut 27.26% <44.44%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22bb50e...8c39528. Read the comment docs.

@ti-chi-bot ti-chi-bot bot added size/XXL and removed size/XL labels Jul 26, 2023
@baurine baurine force-pushed the feat/refine-execution-plan branch from 1457914 to f20e7a5 Compare July 28, 2023 03:18
@baurine baurine marked this pull request as ready for review July 28, 2023 03:18
@baurine baurine force-pushed the feat/refine-execution-plan branch from f20e7a5 to 8c39528 Compare July 28, 2023 03:29
@baurine baurine requested review from shhdgit and mornyx July 28, 2023 03:33
Comment on lines +117 to +124
if err != nil {
err = db.
Select("*, (UNIX_TIMESTAMP(Time) + 0E0) AS timestamp").
Where("Digest = ?", req.Digest).
Where("Time = FROM_UNIXTIME(?)", req.Timestamp).
Where("Conn_id = ?", req.ConnectID).
First(&result).Error
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it to eliminate any errors generated by tidb_decode_binary_plan? What errors does it generate?

Copy link
Collaborator Author

@baurine baurine Jul 28, 2023

Choose a reason for hiding this comment

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

tidb_decode_binary_plan method may not exist in the old tidb version (it is, right? I'm not sure now), so it's for compatibility. theoretically, the latest tidb-dashboard version should work for every tidb version.

@mornyx
Copy link
Collaborator

mornyx commented Jul 28, 2023

Go part LTGM

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 28, 2023

@mornyx: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot added the lgtm label Jul 31, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 31, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-07-31 03:27:02.611310223 +0000 UTC m=+69506.553658742: ☑️ agreed by shhdgit.

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jul 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mornyx, shhdgit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Jul 31, 2023
@ti-chi-bot ti-chi-bot bot merged commit d10e06f into master Jul 31, 2023
6 of 18 checks passed
@ti-chi-bot ti-chi-bot bot deleted the feat/refine-execution-plan branch July 31, 2023 03:27
baurine added a commit that referenced this pull request Sep 11, 2023
* feat(execution-plan): refine execution plan (#1561)

* chore(binary-plan): truncate long operator info for execution plan (#1565)

* feat: fix and refine execution plan (#1568)

* chore(binary-plan): show eye icon to hide column when hover (#1574)

* bump: i18next (#1575)

* Remove PNPM_INSTALL_TAGS=--offline (#1578)

* chore: upgrade node from 16 to 18, pnpm from 7 to 8 (#1580)

* feat(conprof): show conprof download link for TiCDC (#1581)

* keyvisual: use scanRegions instead of fetch all regions (#1579)

* feat(resource-control): show resource control entry for clinic (#1582)

* feat(debug-api): support pagination for ddl history (#1584)

* feat(security): encrypt login password (#1583)

* chore: update swaggo (#1585)

* test(login): fix login integration test (#1587)

* update release version to 2023.09.11.1

---------

Co-authored-by: Suhaha <jklopsdfw@gmail.com>
Co-authored-by: Yifan Xu <xuyifan02@pingcap.com>
Co-authored-by: ShuNing <nolouch@gmail.com>
Co-authored-by: Yexiang Zhang <mornyx.z@gmail.com>
@lilyjazz
Copy link
Member

#1589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants