-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@winoros better to add some test to https://github.com/pingcap/tidb-test |
LGTM |
@zz-jason already a pending pr. |
/run-all-tests |
1 similar comment
/run-all-tests |
func (p *TopN) ExplainInfo() string { | ||
buffer := bytes.NewBufferString("") | ||
for i, item := range p.ByItems { | ||
order := "asc" |
There was a problem hiding this comment.
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
/run-all-tests |
/run-unit-test |
/run-all-tests |
We missed the explain info of topn.
PTAL @zz-jason @lamxTyler @hanfei1991