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 wrong behavior for IF(not_int, *, *) (#15016) #15356

Merged
merged 5 commits into from
Apr 4, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Mar 13, 2020

cherry-pick #15016 to release-3.0


What problem does this PR solve?

fix #11601

What is changed and how it works?

original issue was cause by using types.ETInt for arg0 rounding float to int. This PR using wrapWithIsTrue of isTrueOrFalseFunctionClass to handle different types correctly convert to int.

Check List

Tests

  • Unit test
    • add cases whose args close to 0.0

Code changes

Side effects

Related changes

Release note

@sre-bot
Copy link
Contributor Author

sre-bot commented Mar 13, 2020

/run-all-tests

@XuHuaiyu XuHuaiyu removed their request for review March 16, 2020 05:53
@qw4990 qw4990 removed their request for review March 24, 2020 08:48
@SunRunAway
Copy link
Contributor

/run-all-tests

@SunRunAway
Copy link
Contributor

/run-unit-test

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 3, 2020

@SunRunAway, @qw4990, PTAL.

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway SunRunAway added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 4, 2020
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 added status/can-merge Indicates a PR has been approved by a committer. and removed status/LGT1 Indicates that a PR has LGTM 1. status/PTAL labels Apr 4, 2020
@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Apr 4, 2020
@zz-jason zz-jason removed the request for review from qw4990 April 4, 2020 06:52
@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 4, 2020

/run-all-tests

@sre-bot sre-bot merged commit 8528234 into pingcap:release-3.0 Apr 4, 2020
@XuHuaiyu
Copy link
Contributor

/run-cherry-picker

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 15, 2020

cherry pick to release-3.1 in PR #16424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression contribution This PR is from a community contributor. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/3.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants