-
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
expression: remove unnecessary convertIntToUint. fix error in err msg(should be bigint but not double) #11640
Conversation
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
d262020
to
746396e
Compare
Codecov Report
@@ Coverage Diff @@
## master #11640 +/- ##
================================================
- Coverage 81.6732% 81.2142% -0.4591%
================================================
Files 429 426 -3
Lines 93688 91830 -1858
================================================
- Hits 76518 74579 -1939
- Misses 11772 11889 +117
+ Partials 5398 5362 -36 |
Codecov Report
@@ Coverage Diff @@
## master #11640 +/- ##
===============================================
- Coverage 81.8533% 81.442% -0.4114%
===============================================
Files 430 429 -1
Lines 94800 92618 -2182
===============================================
- Hits 77597 75430 -2167
- Misses 11773 11798 +25
+ Partials 5430 5390 -40 |
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.
Address the comment makes this a LGTM~
types/convert.go
Outdated
@@ -98,6 +98,8 @@ func IntergerSignedLowerBound(intType byte) int64 { | |||
} | |||
|
|||
// ConvertFloatToInt converts a float64 value to a int value. | |||
// |
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.
We can remove this useless line.
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
…fix-bug-of-builtin_cast
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
/run-all-tests |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 in PR #11707 |
Signed-off-by: H-ZeX hzx20112012@gmail.com
What problem does this PR solve?
In some of the code, we get a uint from the row which is stored in int, however, we needn't casting it from int to uint when it is uint, this will make some bugs.
In the origin
builtinCastStringAsDecimalSig::evalDecimal
, the res is always not neg, this is a bug.What is changed and how it works?
Check List
Tests
Code changes
NO.
Side effects
NO.
Related changes