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: fix incorrect results when there is an IndexLookUp under the inner side of an Apply #19496

Merged
merged 3 commits into from
Aug 27, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Aug 26, 2020

What problem does this PR solve?

Issue Number: close #19372

Problem Summary: executor: fix incorrect results when there is an IndexLookUp under the inner side of an Apply

What is changed and how it works?

When an IndexLookUp is under the inner side of an Apply, it may be invoked multiple times, but in IndexLookUp.Close(), the field resultCurr is not cleared up, so in the next round of invocation, some stale rows may be returned because of this logic.

Check List

Tests

  • Unit test

Release note

  • executor: fix incorrect results when there is an IndexLookUp under the inner side of an Apply

@qw4990 qw4990 added type/bugfix This PR fixes a bug. priority/release-blocker This issue blocks a release. Please solve it ASAP. needs-cherry-pick-4.0 priority/P0 The issue has P0 priority. component/executor labels Aug 26, 2020
@qw4990 qw4990 requested review from SunRunAway and XuHuaiyu August 26, 2020 13:15
@qw4990 qw4990 requested a review from a team as a code owner August 26, 2020 13:15
@github-actions github-actions bot added the sig/execution SIG execution label Aug 26, 2020
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

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 26, 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 removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 26, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 26, 2020
Copy link
Contributor

@SunRunAway SunRunAway 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/LGT3 The PR has already had 3 LGTM. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Aug 26, 2020
@SunRunAway
Copy link
Contributor

/merge

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

/run-all-tests

@ti-srebot
Copy link
Contributor

@qw4990 merge failed.

@jebter
Copy link

jebter commented Aug 27, 2020

/run-all-tests

@jebter
Copy link

jebter commented Aug 27, 2020

/run-integration-copr-test

1 similar comment
@jebter
Copy link

jebter commented Aug 27, 2020

/run-integration-copr-test

@jebter
Copy link

jebter commented Aug 27, 2020

/run-integration-common-test

1 similar comment
@XuHuaiyu
Copy link
Contributor

/run-integration-common-test

@qw4990
Copy link
Contributor Author

qw4990 commented Aug 27, 2020

/merge

@qw4990
Copy link
Contributor Author

qw4990 commented Aug 27, 2020

/run-all-tests

1 similar comment
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@qw4990 merge failed.

@qw4990
Copy link
Contributor Author

qw4990 commented Aug 27, 2020

/run-common-test

1 similar comment
@qw4990
Copy link
Contributor Author

qw4990 commented Aug 27, 2020

/run-common-test

@qw4990 qw4990 merged commit deec855 into pingcap:master Aug 27, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Aug 27, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #19508

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/executor priority/P0 The issue has P0 priority. priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT3 The PR has already had 3 LGTM. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect result when applying IndexLookUp multiple times
6 participants