-
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 index-hash-join and index-merge-join consider collation (#21201) #21219
planner: make index-hash-join and index-merge-join consider collation (#21201) #21219
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
@wjhuang2016 you're already a collaborator in bot's repo. |
Wait for #21146 merged. |
ijHelper.curPossibleUsedKeys = append(ijHelper.curPossibleUsedKeys, idxCols[idxColPos]) | ||
continue | ||
// Check collation is the new collation is enabled. | ||
tmpType := make([]expression.Expression, 0) |
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.
Pre-alloc it.
/run-all-tests |
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 |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-integration-common-test |
cherry-pick #21201 to release-4.0
Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com
What problem does this PR solve?
Issue Number: close #20723
Problem Summary:
We didn't correct the collation for index-hash-join and index-merge-join.
What is changed and how it works?
Set all the collations to the result collation.
Related changes
Check List
Tests
Side effects
Release note