-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: make a copy of column before modifying its InOperand #19472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-unit-test |
1 similar comment
/run-unit-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@eurekaka merge failed. |
/run-all-tests |
/run-unit-test |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #19477 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Kenan Yao <cauchy1992@gmail.com>
What problem does this PR solve?
Issue Number: close #19423
Problem Summary:
Incorrect of anti-semi-join query caused by incorrect
OtherConditions
of the LogicalJoin plan.What is changed and how it works?
What's Changed:
After #13406,
LogicalProjection
would not allocate newColumn
for column -> column projection, so if we directly modifyInOperand
of aColumn
, it may effect the filters in the subquery. Make a copy of this column before modifying this field.How it Works:
The filters in the subquery would stay untouched, so they can correctly be put into
EqualConditions
/OtherConditions
later.Related changes
Check List
Tests
Side effects
N/A
Release note