wangshuo128 commented on code in PR #11502: URL: https://github.com/apache/doris/pull/11502#discussion_r938491743
########## fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java: ########## @@ -373,6 +375,30 @@ public PlanFragment visitPhysicalHashJoin(PhysicalHashJoin<Plan, Plan> hashJoin, } } + @Override + public PlanFragment visitPhysicalNestedLoopJoin(PhysicalNestedLoopJoin<Plan, Plan> nestedLoopJoin, + PlanTranslatorContext context) { + // NOTICE: We must visit from right to left, to ensure the last fragment is root fragment Review Comment: Should we add a helper method to wrap this logic? Maybe something like `private List<PlanFragment> postOrderVisitChildren(PhysicalPlan plan, PlanVisitor visitor, Context context)`. Could add a todo and refactor this in the next PR. -- 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