-
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: add linear search for the interval function #19543
expression: add linear search for the interval function #19543
Conversation
4dca148
to
5d8dc02
Compare
/run-all-tests |
2 similar comments
/run-all-tests |
/run-all-tests |
@XuHuaiyu Hi Huaiyu~ PTAL~ |
@SunRunAway PTAL as well~ |
@XuHuaiyu @SunRunAway friendly ping~ |
/uncc @lzmhhh123 |
/cc @SunRunAway |
/cc @XuHuaiyu |
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
You can try to fix the coprocessor version. |
@XuHuaiyu PTAL |
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
/merge |
/merge |
/run-all-tests |
/run-all-tests |
@ichn-hu merge failed. |
/run-unit-test |
/run-integration-test |
/run-all-tests |
/merge |
/run-all-tests |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-3.0 in PR #19789 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #19790 |
) Signed-off-by: ti-srebot <[email protected]>
What problem does this PR solve?
Issue Number: close #18525
Problem Summary: due to the binary search algorithm for the
interval
function we currently employed can't handle NULL values correctly, it caused different result from MySQL. After research the MySQL's implementation for this function, I figured out that MySQL uses linear search if there is aNULL
argument, therefore I added this functionality to ourinterval
function.What is changed and how it works?
What's Changed: linear search is added for
interval
functions.How it Works: we use linear search instead of binary search if any of the argument might be NULL.
Related changes
Check List
Tests
Side effects
Release note