-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: Columns in string pruning (#32626) #32721
Conversation
Test not complete yet
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/3a20ed993b72ed50e0b623968bc6871e30c0babe |
/run-unit-test |
{sql: `explain select * from t where a = 'AB'`, partitions: "pccc"}, | ||
{sql: `explain select * from t where a = 'aB'`, partitions: "pccc"}, | ||
{sql: `explain select * from t where a = '🍣'`, partitions: "psushi"}, | ||
{sql: `explain select * from t where a in ('🍣 is life', "Räkmacka", "🍺🍺🍺🍺 after work?")`, partitions: "pshrimpsandwich,psushi,pmax"}, |
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.
Could you add some tests for explicit collate:
such as : explain select * from t where a = 'AA' collate utf8mb4_bin
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.
Thanks, I found issue #32749 due to this :)
I have added tests for explicit collate as well as for the original bug.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 072426a
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #32921 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0 in PR #32923 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.1 in PR #32924 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.2 in PR #32925 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.3 in PR #32926 |
cherry pick to release-5.4 in PR #32927 |
Signed-off-by: ti-srebot <[email protected]>
What problem does this PR solve?
Issue Number: close #32626
Problem Summary:
What is changed and how it works?
Only int and time type of columns was enabled to prune partitions in
RANGE COLUMNS
IN
conditions.This also enables String type columns
Check List
Tests
Side effects
Documentation
Release note