Skip to content

Commit

Permalink
[fix](nereids) fix outerjoin assoc rule bug (apache#37762)
Browse files Browse the repository at this point in the history
Fix outer join assoc rule bug, which unexpectly doing the join reorder
for the (t1 left outer t2) inner t3 => t1 left outer (t2 inner join t3)
transformation, and leading the wrong result.
  • Loading branch information
xzj7019 authored Jul 16, 2024
1 parent cfae960 commit dbdbd2c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public class OuterJoinAssocProject extends OneExplorationRuleFactory {
// Pair<bottomJoin, topJoin>
// newBottomJoin Type = topJoin Type, newTopJoin Type = bottomJoin Type
public static Set<Pair<JoinType, JoinType>> VALID_TYPE_PAIR_SET = ImmutableSet.of(
Pair.of(JoinType.LEFT_OUTER_JOIN, JoinType.INNER_JOIN),
Pair.of(JoinType.INNER_JOIN, JoinType.LEFT_OUTER_JOIN),
Pair.of(JoinType.LEFT_OUTER_JOIN, JoinType.LEFT_OUTER_JOIN));

Expand Down

0 comments on commit dbdbd2c

Please sign in to comment.