[fix](Nereids) should not push down project to the nullable side of outer join (#27912)

This commit is contained in:
starocean999
2023-12-05 10:43:33 +08:00
committed by GitHub
parent 50ad40a7a8
commit 3c97e69f3c
2 changed files with 55 additions and 2 deletions

View File

@ -136,8 +136,8 @@ public class PushDownProjectThroughInnerOuterJoin implements ExplorationRuleFact
return null;
}
// we could not push nullable side project
if ((join.getJoinType().isLeftOuterJoin() && rightContains)
|| (join.getJoinType().isRightOuterJoin() && leftContains)) {
if (((join.getJoinType().isLeftOuterJoin() || join.getJoinType().isFullOuterJoin()) && rightContains)
|| ((join.getJoinType().isRightOuterJoin() || join.getJoinType().isFullOuterJoin()) && leftContains)) {
return null;
}