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: fix a bug in topn_push_down rule. #6899

Merged
merged 3 commits into from
Jun 25, 2018
Merged

Conversation

winoros
Copy link
Member

@winoros winoros commented Jun 25, 2018

What have you changed? (mandatory)

ColumnIndices will return nil if not all column in the schema.
So here will perform wrong action if the by item contains column from both sides.

What are the type of the changes (mandatory)?

The currently defined types are listed below, please pick one of the types for this PR by removing the others:

  • Bug fix

How has this PR been tested (mandatory)?

unit test.

Refer to a related PR or issue link (optional)

fix #6864

@shenli
Copy link
Member

shenli commented Jun 25, 2018

LGTM

@shenli
Copy link
Member

shenli commented Jun 25, 2018

/run-all-tests

@shenli shenli added sig/planner SIG: Planner status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug. labels Jun 25, 2018
@shenli
Copy link
Member

shenli commented Jun 25, 2018

Do we need to cherry-pick this to the release-2.0?

@winoros
Copy link
Member Author

winoros commented Jun 25, 2018

@shenli Yes, we'd better pick it.

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 25, 2018
@alivxxx alivxxx merged commit 9ff7a33 into pingcap:master Jun 25, 2018
@winoros winoros deleted the issue6864 branch June 28, 2018 03:54
winoros added a commit to winoros/tidb that referenced this pull request Jun 28, 2018
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/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

order by IFNULL and limit throw error 'runtime error: index out of range'
3 participants