Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Apr 24, 2024
1 parent a2395bc commit 5ade18a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/planner/util/null_misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ import (
// If it is a conjunction containing a null-rejected condition as a conjunct.
// If it is a disjunction of null-rejected conditions.
func IsNullRejected(ctx context.PlanContext, schema *expression.Schema, expr expression.Expression) bool {
exprCtx := ctx.GetExprCtx()
exprCtx := ctx.GetNullRejectCheckExprCtx()
expr = expression.PushDownNot(exprCtx, expr)
if expression.ContainOuterNot(expr) {
return false
}
sc := ctx.GetSessionVars().StmtCtx
if !exprCtx.IsInNullRejectCheck() {
exprCtx.SetInNullRejectCheck(true)
defer exprCtx.SetInNullRejectCheck(false)
}
for _, cond := range expression.SplitCNFItems(expr) {
if isNullRejectedSpecially(ctx, schema, expr) {
return true
Expand Down

0 comments on commit 5ade18a

Please sign in to comment.