englefly commented on code in PR #11812: URL: https://github.com/apache/doris/pull/11812#discussion_r949760465
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/logical/MultiJoin.java: ########## @@ -124,20 +148,27 @@ private Plan reorderJoinsAccordingToConditions(List<Plan> joinInputs, List<Expre }).findFirst(); Plan right = rightOpt.orElseGet(() -> candidate.get(1)); - Set<Slot> joinOutput = getJoinOutput(left, right); - Map<Boolean, List<Expression>> split = splitConjuncts(conjuncts, joinOutput); - List<Expression> joinConditions = split.get(true); - List<Expression> nonJoinConditions = split.get(false); - - Optional<Expression> cond; + Pair<List<Expression>, List<Expression>> pair = JoinUtils.extractExpressionForHashTable( + joinInputs.get(0).getOutput().stream().map(SlotReference.class::cast).collect(Collectors.toList()), + joinInputs.get(1).getOutput().stream().map(SlotReference.class::cast).collect(Collectors.toList()), + conjuncts); + //Set<Slot> joinOutput = getJoinOutput(left, right); + //Map<Boolean, List<Expression>> split = splitConjuncts(conjuncts, joinOutput); + //List<Expression> joinConditions = split.get(true); + //List<Expression> nonJoinConditions = split.get(false); + List<Expression> joinConditions = pair.first; + List<Expression> nonJoinConditions = pair.second; Review Comment: nonJoinConditions is in upper filter -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org