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

plan: refine explain result format #7011

Merged
merged 5 commits into from
Jul 9, 2018
Merged

Conversation

coocood
Copy link
Member

@coocood coocood commented Jul 7, 2018

What have you changed? (mandatory)

Delete redundant IndexLookUp description and move the cost column next to id to make it more noticeable.

What are the type of the changes (mandatory)?

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested (mandatory)?

unit test

@coocood coocood requested review from zz-jason and winoros July 7, 2018 17:38
@zz-jason
Copy link
Member

zz-jason commented Jul 8, 2018

LGTM

@zz-jason zz-jason added type/enhancement The issue or PR belongs to an enhancement. status/LGT1 Indicates that a PR has LGTM 1. sig/planner SIG: Planner labels Jul 8, 2018
plan/explain.go Outdated
@@ -116,7 +116,7 @@ func (p *PhysicalIndexReader) ExplainInfo() string {

// ExplainInfo implements PhysicalPlan interface.
func (p *PhysicalIndexLookUpReader) ExplainInfo() string {
return fmt.Sprintf("index:%s, table:%s", p.indexPlan.ExplainID(), p.tablePlan.ExplainID())
return ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better to add comment to explain why only return "" to its caller?

@zhexuany
Copy link
Contributor

zhexuany commented Jul 9, 2018

Well Done. Except the comment of function, other Part looks good to me. If you resolve this, just ping me so that I can approve this PR. ;)

Copy link
Contributor

@zhexuany zhexuany left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood
Copy link
Member Author

coocood commented Jul 9, 2018

/run-all-tests

@coocood
Copy link
Member Author

coocood commented Jul 9, 2018

/run-common-test
/run-unit-test

@coocood
Copy link
Member Author

coocood commented Jul 9, 2018

/run-integration-common-test

@winoros winoros merged commit 372a6fc into pingcap:master Jul 9, 2018
@winoros winoros added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 9, 2018
@coocood coocood deleted the refine-explain branch July 9, 2018 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants