LiBinfeng-01 commented on code in PR #27378: URL: https://github.com/apache/doris/pull/27378#discussion_r1408844773
########## fe/fe-core/src/main/java/org/apache/doris/nereids/hint/LeadingHint.java: ########## @@ -367,6 +435,13 @@ public Plan generateLeadingJoinPlan() { newStackTop.second.getOutput(), logicalPlan.getOutput(), conditions); JoinType joinType = computeJoinType(getBitmap(newStackTop.second), getBitmap(logicalPlan), conditions); + if (joinType == null) { Review Comment: done ########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/CollectJoinConstraint.java: ########## @@ -92,27 +90,37 @@ public List<Rule> buildRules() { }).toRule(RuleType.COLLECT_JOIN_CONSTRAINT), logicalFilter().thenApply(ctx -> { - LeadingHint leading = (LeadingHint) ctx.cascadesContext - .getStatementContext().getHintMap().get("Leading"); - if (leading == null) { + if (!ctx.cascadesContext.isLeadingJoin()) { return ctx.root; } + LeadingHint leading = (LeadingHint) ctx.cascadesContext + .getHintMap().get("Leading"); LogicalFilter filter = ctx.root; Set<Expression> expressions = filter.getConjuncts(); for (Expression expression : expressions) { - Long filterBitMap = calSlotsTableBitMap(leading, expression.getInputSlots(), false); + Long filterBitMap = 0L; Review Comment: done -- 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