-
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: copy the field Column in dataSource when create partition union. #20559
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
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 |
/merge |
/run-all-tests |
@wshwsh12 merge failed. |
/run-unit-test |
/run-all-tests |
/run-unit-test |
/run-sqllogic-test |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #20565 |
What problem does this PR solve?
Issue Number: close #20558
Problem Summary: panic/wrong result when using partition union and prune columns optimize.
Eg, datasource1, datasource2. They have the same address for field
columns
[column1,column2,column3,column4]columns
, because it assume the schema is same to columns.) to check whether the columns is used.Assume column2 is useless.
The columns in datasource1 has changed to [column1, column3, column4]
The columns in datasource2 has changed to [column1, column3, column4, column4]
The columns in datasoucres1 has changed to [column1, column4, column4]
The columns in datasoucres1 has changed to [column1, column4, column4]
What is changed and how it works?
Proposal: xxx
What's Changed:
copy the field Column in dataSource when create partition union.
How it Works:
Related changes
Check List
Tests
Side effects
Release note