[fix](nereids) disable PushDownJoinOtherCondition rule for mark join (#31084)

This commit is contained in:
starocean999
2024-02-19 17:43:05 +08:00
committed by yiguolei
parent 8a3e6644d4
commit 180fc13f6b
3 changed files with 29 additions and 2 deletions

View File

@ -62,7 +62,8 @@ public class PushDownJoinOtherCondition extends OneRewriteRuleFactory {
return logicalJoin()
// TODO: we may need another rule to handle on true or on false condition
.when(join -> !join.getOtherJoinConjuncts().isEmpty() && !(join.getOtherJoinConjuncts().size() == 1
&& join.getOtherJoinConjuncts().get(0) instanceof BooleanLiteral))
&& join.getOtherJoinConjuncts().get(0) instanceof BooleanLiteral)
&& !join.isMarkJoin())
.then(join -> {
List<Expression> otherJoinConjuncts = join.getOtherJoinConjuncts();
List<Expression> remainingOther = Lists.newArrayList();