Skip to content

Commit b8e3014

Browse files
committed
update
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
1 parent 031f340 commit b8e3014

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pkg/planner/core/operator/logicalop/logical_join.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (p *LogicalJoin) canConvertAntiJoin(ret []expression.Expression) (newRet []
305305
}
306306
return newRet, canConvert
307307
default:
308-
return nil, false
308+
return ret, false
309309
}
310310
}
311311

pkg/planner/core/operator/logicalop/logical_plans_misc.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,8 @@ func AddSelection(p base.LogicalPlan, child base.LogicalPlan, conditions []expre
103103
return
104104
}
105105
if join, ok := child.(*LogicalJoin); ok {
106-
if join.JoinType == base.LeftOuterJoin {
107-
var ok bool
108-
if conditions, ok = join.canConvertAntiJoin(conditions); ok {
109-
join.JoinType = base.AntiSemiJoin
110-
}
106+
if conditions, ok = join.canConvertAntiJoin(conditions); ok {
107+
join.JoinType = base.AntiSemiJoin
111108
}
112109
}
113110
selection := LogicalSelection{Conditions: conditions}.Init(p.SCtx(), p.QueryBlockOffset())

0 commit comments

Comments
 (0)