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

planner: display cop tasks when explain format is "dot" (#12225) #16125

Merged
merged 4 commits into from
Apr 8, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Apr 7, 2020

cherry-pick #12225 to release-3.1


What problem does this PR solve?

(1) In the physical plan tree, if the top node is a TableReader / IndexLookUpReader / IndexReader, it will not display the cop processes when executing explain format="dot".
(2) Some uses of fmt.Sprintf are not the best way.

What is changed and how it works?

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    (1) create table t(a int, b int, c int);
    (2)explain format="dot" select * from t where a < 2;

Code changes
planner/core/common_plan.go prepareTaskDot()

Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 7, 2020

/run-all-tests

@sre-bot sre-bot added sig/planner SIG: Planner contribution This PR is from a community contributor. type/3.1-cherry-pick type/bugfix This PR fixes a bug. labels Apr 7, 2020
@eurekaka
Copy link
Contributor

eurekaka commented Apr 8, 2020

/run-unit-test

Copy link
Contributor

@eurekaka eurekaka left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Apr 8, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 8, 2020

Your auto merge job has been accepted, waiting for 16183, 16121, 16124

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 8, 2020

/run-all-tests

@sre-bot sre-bot merged commit 0c05d2d into pingcap:release-3.1 Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. sig/planner SIG: Planner status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/3.1-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants