Skip to content

Commit ea1955d

Browse files
zhongjian.xzjzhongjian.xzj
zhongjian.xzj
authored and
zhongjian.xzj
committed
[nereids] fix join fd computing bug
1 parent d75300f commit ea1955d

File tree

1 file changed

+2
-2
lines changed
  • fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical

1 file changed

+2
-2
lines changed

fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalJoin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ public FunctionalDependencies computeFuncDeps(Supplier<List<Slot>> outputSupplie
423423
// TODO: consider Null-safe hash condition when left and rigth is not nullable
424424
boolean isLeftUnique = left().getLogicalProperties()
425425
.getFunctionalDependencies().isUnique(keys.first);
426-
boolean isRightUnique = left().getLogicalProperties()
427-
.getFunctionalDependencies().isUnique(keys.first);
426+
boolean isRightUnique = right().getLogicalProperties()
427+
.getFunctionalDependencies().isUnique(keys.second);
428428
Builder fdBuilder = new Builder();
429429
if (joinType.isInnerJoin()) {
430430
// inner join propagate uniforms slots

0 commit comments

Comments
 (0)