-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
types: fix compare float64 with float64 in json #21709
types: fix compare float64 with float64 in json #21709
Conversation
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
There is no reward for this challenge pull request, so you can request a reward from @lzmhhh123. |
/run-all-tests |
@@ -647,6 +647,16 @@ func compareInt64(x int64, y int64) int { | |||
return 1 | |||
} | |||
|
|||
func compareFloat64(x float64, y float64) int { |
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.
Can we use compareFloat64PrecisionLoss
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.
The origin code used it. Then got the wrong result.
/run-integration-copr-test |
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
PTAL @wshwsh12 |
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 |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #21785 |
Signed-off-by: lzmhhh123 lzmhhh123@gmail.com
What problem does this PR solve?
Issue Number: close #10461
What is changed and how it works?
What's Changed: reference https://github.com/mysql/mysql-server/blob/ee4455a33b10f1b1886044322e4893f587b319ed/sql/json_dom.cc#L2656
Related changes
Check List
Tests
Release note