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: don't put the handle column twice into the index column #18565

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

winoros
Copy link
Member

@winoros winoros commented Jul 14, 2020

What problem does this PR solve?

Issue Number: close #18564

Problem Summary:

The handle column appeared twice in the index column. Then the index join wrong think this index has one more column than it is.

What is changed and how it works?

What's Changed:

Removed the duplicate column.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

  • Fix a case that index join may return wrong result.

@winoros winoros requested review from a team as code owners July 14, 2020 19:00
@winoros winoros requested review from XuHuaiyu and removed request for a team July 14, 2020 19:00
@github-actions github-actions bot added the sig/execution SIG execution label Jul 14, 2020
@codecov
Copy link

codecov bot commented Jul 14, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@af685f5). Click here to learn what that means.
The diff coverage is 100.0000%.

@@             Coverage Diff             @@
##             master     #18565   +/-   ##
===========================================
  Coverage          ?   79.2622%           
===========================================
  Files             ?        541           
  Lines             ?     145300           
  Branches          ?          0           
===========================================
  Hits              ?     115168           
  Misses            ?      20839           
  Partials          ?       9293           

Copy link
Contributor

@lzmhhh123 lzmhhh123 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 16, 2020
XuHuaiyu
XuHuaiyu previously approved these changes Jul 20, 2020
Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 20, 2020
ti-srebot
ti-srebot previously approved these changes Jul 20, 2020
@XuHuaiyu XuHuaiyu added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Jul 20, 2020
@winoros winoros dismissed stale reviews from ti-srebot and XuHuaiyu via ef080ad July 21, 2020 06:40
@winoros
Copy link
Member Author

winoros commented Jul 21, 2020

/rebuild

@XuHuaiyu
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 21, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 847a3b7 into pingcap:master Jul 21, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 21, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-3.0 in PR #18710

@winoros winoros deleted the issue18564 branch July 21, 2020 07:41
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 21, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-3.1 in PR #18711

ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Jul 21, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #18712

winoros added a commit that referenced this pull request Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index join return wrong result compared to other join's physical implmentation
5 participants