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/explain: add explain info for topn. #5287

Merged
merged 5 commits into from
Dec 4, 2017

Conversation

winoros
Copy link
Member

@winoros winoros commented Dec 1, 2017

We missed the explain info of topn.
PTAL @zz-jason @lamxTyler @hanfei1991

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
Copy link
Member

zz-jason commented Dec 1, 2017

@winoros better to add some test to https://github.com/pingcap/tidb-test

@coocood
Copy link
Member

coocood commented Dec 1, 2017

LGTM

@winoros
Copy link
Member Author

winoros commented Dec 1, 2017

@zz-jason already a pending pr.

@shenli
Copy link
Member

shenli commented Dec 1, 2017

/run-all-tests

1 similar comment
@zz-jason
Copy link
Member

zz-jason commented Dec 2, 2017

/run-all-tests

func (p *TopN) ExplainInfo() string {
buffer := bytes.NewBufferString("")
for i, item := range p.ByItems {
order := "asc"
Copy link
Member

Choose a reason for hiding this comment

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

We can define explain info for by item. There exists same logic in sort and topn

@coocood
Copy link
Member

coocood commented Dec 4, 2017

/run-all-tests

@zz-jason
Copy link
Member

zz-jason commented Dec 4, 2017

/run-unit-test

@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 4, 2017
@shenli
Copy link
Member

shenli commented Dec 4, 2017

/run-all-tests

@coocood coocood merged commit 6195d91 into pingcap:master Dec 4, 2017
@winoros winoros deleted the topn-explain branch December 4, 2017 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants