[fix](Nereids): OuterJoinAssoc reject literal condition (#31172)
This commit is contained in:
@ -79,7 +79,7 @@ public class OuterJoinAssoc extends OneExplorationRuleFactory {
|
||||
.addAll(topJoin.getOtherJoinConjuncts()).build();
|
||||
Set<Slot> notNullSlots = ExpressionUtils.inferNotNullSlots(on,
|
||||
ctx.cascadesContext);
|
||||
if (!conditionSlot.equals(notNullSlots)) {
|
||||
if (conditionSlot.isEmpty() || !conditionSlot.equals(notNullSlots)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ public class OuterJoinAssocProject extends OneExplorationRuleFactory {
|
||||
.addAll(topJoin.getOtherJoinConjuncts()).build();
|
||||
Set<Slot> notNullSlots = ExpressionUtils.inferNotNullSlots(on,
|
||||
ctx.cascadesContext);
|
||||
if (!conditionSlot.equals(notNullSlots)) {
|
||||
if (conditionSlot.isEmpty() || !conditionSlot.equals(notNullSlots)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user