-
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
expression: fix the issue that incorrect result for query that uses an AND operator on floats #15927
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.
LGTM
Please fix UT: datum_test.go:66: testDatumSuite.TestToBool
|
Codecov Report
@@ Coverage Diff @@
## master #15927 +/- ##
===========================================
Coverage 80.4895% 80.4895%
===========================================
Files 506 506
Lines 137429 137429
===========================================
Hits 110616 110616
Misses 18221 18221
Partials 8592 8592 |
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 |
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 |
/run-all-tests |
It seems that the |
@qw4990 ok |
@qw4990 Seems there're still issues in TiDB. mysql root@127.0.0.1:test> SELECT ATAN( `col_varbinary_32`, ( ROUND( `col_year_key` ) ) ) AS field1, ABS( 8188107072512983040 ) AS field2, - 0 AS field3 FROM `table
10_int_autoinc` WHERE LOG( `col_varchar_64_key`, '2033-08-25 07:33:37.038938' ) /* QNO 841 CON_ID 184 */
+--------+---------------------+--------+
| field1 | field2 | field3 |
+--------+---------------------+--------+
| 0.0 | 8188107072512983040 | 0 |
+--------+---------------------+--------+
|
Wait for tikv/tikv#7342. |
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.
Should mocktikv be updated?
/run-integration-copr-test tikv=pr/7342 |
/run-all-tests |
/run-integration-copr-test tikv=pr/7342 |
/run-all-tests |
/run-integration-copr-test tikv=pr/7342 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-2.1 in PR #16663 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.0 in PR #16664 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #16665 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #16666 |
What problem does this PR solve?
Issue Number: close #15743, close #16426
What is changed and how it works?
Don't round the value when converting it to
bool
.Check List
Tests