-
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
util: fix wrong range when building from string column is true. #16135
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.
Will the column with other type cause this error too?
Such as decimal and float?
I have a try. Decimal and float will get a right range, beacuse decimal and float are comparable to Int. |
Codecov Report
@@ Coverage Diff @@
## master #16135 +/- ##
================================================
+ Coverage 80.4113% 80.4568% +0.0455%
================================================
Files 506 506
Lines 136625 136805 +180
================================================
+ Hits 109862 110069 +207
+ Misses 18192 18178 -14
+ Partials 8571 8558 -13 |
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.
ok i got it. lgtm
/run-all-tests |
@wshwsh12 merge failed. |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-2.1 in PR #16552 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.0 in PR #16553 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #16554 |
cherry pick to release-4.0 in PR #16555 |
What problem does this PR solve?
Issue Number: close #15990
Problem Summary: Using a column both in a string comparison and as a boolean yields an incorrect result.
What is changed and how it works?
What's Changed: Build a range from string column wrongly. So I change the endpoint from int 0 to string ''
How it Works:
Related changes
Check List
Tests
Side effects
Release note
Fix the wrong behavior when string column in
where
stmt to check True/False.