-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
util: the incorrectly handle string compare with whitespace #53036
util: the incorrectly handle string compare with whitespace #53036
Conversation
Signed-off-by: fanrenhoo <fanrenhoo@sina.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @fanrenhoo. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @xiongjiwei |
@fanrenhoo: GitHub didn't allow me to request PR reviews from the following users: xiongjiwei. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @lance6716 |
Hi, I found it seems TiDB intendly to trim the spaces at the ending of characters before comparision, including hashjoin with columns, or raw strings. But it does not comply with MySQL. So please review if this fix is correct |
/test |
@fanrenhoo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53036 +/- ##
================================================
+ Coverage 72.0269% 73.5822% +1.5553%
================================================
Files 1499 1499
Lines 431250 431883 +633
================================================
+ Hits 310616 317789 +7173
+ Misses 101328 94193 -7135
- Partials 19306 19901 +595
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@fanrenhoo: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
do not fix like this. create table with collate |
OK,so this issue dont need fix. I will close this issue and pull requet |
close |
What problem does this PR solve?
Issue Number: close #52938
Problem Summary: TiDB incorrectly handle the comparision of Strings with whitespace ending
What changed and how does it work?
In collation string compare functions, remove the TrimRightSpace(str) for Compare and Key funcs
Check List
Tests
Side effects
No
Documentation
No
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.