Skip to content
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... (#15927) #16666

Merged
merged 2 commits into from
May 4, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Apr 21, 2020

cherry-pick #15927 to release-4.0


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

  • Unit test

Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot sre-bot requested a review from a team as a code owner April 21, 2020 06:45
@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 21, 2020

/run-all-tests

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qw4990 please fix CI:

[2020-04-21T06:45:45.011Z] expression/integration_test.go:6114:1: expected declaration, found '<<'
[2020-04-21T06:45:45.011Z] expression/integration_test.go:6164:115: illegal character U+0023 '#'

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 28, 2020

@sre-bot, please update your pull request.

@qw4990
Copy link
Contributor

qw4990 commented May 4, 2020

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented May 4, 2020

/rebuild

@qw4990
Copy link
Contributor

qw4990 commented May 4, 2020

/run-all-tests tikv=pr/7583

@qw4990
Copy link
Contributor

qw4990 commented May 4, 2020

Conflicts have been resolved, PTAL @zz-jason @SunRunAway @breeswish @zhongzc

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason changed the title expression: fix the issue that incorrect result for query that uses an AND operator on floats (#15927) expression: fix the issue that incorrect result for... (#15927) May 4, 2020
@zz-jason zz-jason merged commit acc1c5a into pingcap:release-4.0 May 4, 2020
@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants