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) #19508

Merged
merged 2 commits into from
Aug 27, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #19496 to release-4.0


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

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot added component/executor Priority/P0 Features that will be implemented in the latest major/minor version priority/release-blocker This PR blocks a release. Please review it ASAP. sig/execution SIG execution type/4.0-cherry-pick type/bug-fix This PR fixes a bug. labels Aug 27, 2020
@ti-srebot ti-srebot added this to the v4.0.6 milestone Aug 27, 2020
@qw4990
Copy link
Contributor

qw4990 commented Aug 27, 2020

/run-all-tests

@XuHuaiyu
Copy link
Contributor

LGTM

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

/merge

@ti-srebot
Copy link
Contributor Author

Sorry @zz-jason, you don't have permission to trigger auto merge event on this branch.
The version releasement is in progress.

@jebter
Copy link

jebter commented Aug 27, 2020

/merge

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

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@ti-srebot merge failed.

@jebter
Copy link

jebter commented Aug 27, 2020

/run-unit-test

@jebter jebter merged commit a578272 into pingcap:release-4.0 Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/executor Priority/P0 Features that will be implemented in the latest major/minor version priority/release-blocker This PR blocks a release. Please review it ASAP. 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/bug-fix This PR fixes a bug. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants