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

executor: check unequal handles when buildTableReader4INLJoin #15675

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

XuHuaiyu
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #15658

Problem Summary:
Before this commit, buildTableReaderForIndexJoin assumes that there is only one value for handles in lookupContent. Thus we'll fetch redundant rows.

What is changed and how it works?

Proposal: xxx

What's Changed:
Check whether there are redundant unequal handle values in buildTableReaderForIndexJoin.

How it Works:

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Integration test

Side effects

  • Performance regression
    • Consumes more CPU

Release note

@XuHuaiyu XuHuaiyu added type/bugfix This PR fixes a bug. sig/execution SIG execution needs-cherry-pick-3.0 labels Mar 25, 2020
@XuHuaiyu XuHuaiyu requested a review from a team as a code owner March 25, 2020 08:32
@ghost ghost requested review from qw4990 and SunRunAway and removed request for a team March 25, 2020 08:32
@XuHuaiyu XuHuaiyu requested a review from fzhedu March 25, 2020 08:33
Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

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

LGTM

@qw4990 qw4990 added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 25, 2020
@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #15675 into master will increase coverage by 0.0399%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #15675        +/-   ##
================================================
+ Coverage   80.4243%   80.4643%   +0.0399%     
================================================
  Files           504        504                
  Lines        134473     135086       +613     
================================================
+ Hits         108149     108696       +547     
- Misses        17833      17921        +88     
+ Partials       8491       8469        -22

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 zz-jason added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 26, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Mar 26, 2020

/run-all-tests

@sre-bot sre-bot merged commit 6dd8377 into pingcap:master Mar 26, 2020
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Mar 26, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Mar 26, 2020

cherry pick to release-3.0 in PR #15734

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Mar 26, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Mar 26, 2020

cherry pick to release-3.1 in PR #15735

@sre-bot
Copy link
Contributor

sre-bot commented Mar 26, 2020

cherry pick to release-4.0 in PR #15736

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. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

executor: indexMergeJoin, indexHashJoin and IndexJoin error
4 participants