-
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 : fix function 'binSearch' in builtinIntervalRealSig not return error #12957
Conversation
Good catch! |
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #12957 +/- ##
===========================================
Coverage 80.0644% 80.0644%
===========================================
Files 474 474
Lines 116746 116746
===========================================
Hits 93472 93472
Misses 15887 15887
Partials 7387 7387 |
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
Shall we cherry-pick this to the release branch? @XuHuaiyu |
@francis0407 We need to cherry-pick this commit to 2.1, 3.0, 3.1 @gtygo Is it possible to build a test case for this modification? |
@gtygo |
It can be other expressions, such as |
@XuHuaiyu Let you wait a long time , i added a group of unit tests, please give comments. |
{types.MakeDatums(uint64(9223372036854775806), 9223372036854775807), 0, false}, | ||
{types.MakeDatums(uint64(9223372036854775806), -9223372036854775807), 1, false}, | ||
{types.MakeDatums("9007199254740991", "9007199254740992"), 0, false}, | ||
{types.MakeDatums(1, uint32(1), uint32(1)), 0, true}, |
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.
Why will this return an error?
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.
This testcase will cover (SF * scalarfunction) evalreal
, and it will return an error: cannot convert 1 (type uint32) to string
@XuHuaiyu please review |
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 |
@gtygo merge failed. |
/run-all-tests |
/run-unit-test |
/run-auto-merge |
/merge |
/run-all-tests |
cherry pick to release-3.1 in PR #13766 |
cherry pick to release-3.0 in PR #13767 |
cherry pick to release-2.1 in PR #13768 |
What problem does this PR solve?
When I implemented the vectorization interface, I found a tiny error in the builtin_compare.go file.
So I fixed it
What is changed and how it works?
In the binsreach function, when we call
EvalReal
, the return value iserr1
, but when we judge the error, we checkerr
, thiserr
is always empty, which causes us to not captureEvalReal
The error returned.Check List
Tests