-
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: split isTrue and isFalse expression sig (#16542) #16630
expression: split isTrue and isFalse expression sig (#16542) #16630
Conversation
/run-all-tests |
/run-all-tests |
wait for tikv#7567 |
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.
/run-all-tests |
1 similar comment
/run-all-tests |
/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
/run-all-tests |
@sre-bot merge failed. |
@zz-jason Please help me to merge this PR. Thanks! |
/run-all-tests |
cherry-pick #16542 to release-4.0
What problem does this PR solve?
Close: #15718
Close: #15987
Close: #16501
Close: #16716
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