[fix](Nereids) should not infer not null from mark join (#30897)

This commit is contained in:
morrySnow
2024-02-06 16:55:10 +08:00
committed by yiguolei
parent 08508d65fd
commit f95d0cf802
3 changed files with 26 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class InferJoinNotNull extends OneRewriteRuleFactory {
// TODO: maybe consider ANTI?
return logicalJoin(any(), any())
.when(join -> join.getJoinType().isInnerJoin() || join.getJoinType().isSemiJoin())
.whenNot(LogicalJoin::isMarkJoin)
.thenApply(ctx -> {
LogicalJoin<Plan, Plan> join = ctx.root;
Set<Expression> conjuncts = new HashSet<>();