-
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: split isTrue and isFalse expression sig (#16542) #16627
expression: split isTrue and isFalse expression sig (#16542) #16627
Conversation
Signed-off-by: sre-bot <sre-bot@pingcap.com>
/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.
@Reminiscent please resolve conflict and fix CI.
…e-bot/release-3.0-8b6d53a4a959
/run-all-tests tikv=pr/7565 |
/run-all-tests |
run-integration-common-test |
/run-integration-common-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
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 conflicts.
…e-bot/release-3.0-8b6d53a4a959 � Conflicts: � executor/executor_test.go
@breeswish PTAL. Thanks! |
/rebuild |
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 |
cherry-pick #16542 to release-3.0
What problem does this PR solve?
Close: #15718
Close: #15987
Close: #16501
Related PR: #12173 #15926 tikv#7532
The reason for the above error is that the variable keepNull in the expression
isTrue
andisFalse
is not pushed down correctly.After an offline discussion with @XuHuaiyu @SunRunAway @breeswish , we decided to eliminate the
keepNull
variable by splitting theisTrue
andisFalse
expression sig to solve this problem.What is changed and how it works?
Split the
isTrue
andisFalse
expression sig. When thekeepNull = true
, we setsetPbCode = tipb.ScalarFuncSig_XXXIsTrueWithNull
. When thekeepNull = false
, we setsetPbCode = tipb.ScalarFuncSig_XXXIsTrue
.So we can don't need to push down the
keepNull
variable.Check List
Tests
Release note