morrySnow commented on code in PR #33154: URL: https://github.com/apache/doris/pull/33154#discussion_r1559702530
########## fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/CommonSubExpressionOpt.java: ########## @@ -51,10 +51,12 @@ public class CommonSubExpressionOpt extends PlanPostProcessor { @Override public PhysicalProject visitPhysicalProject(PhysicalProject<? extends Plan> project, CascadesContext ctx) { - - List<List<NamedExpression>> multiLayers = computeMultiLayerProjections( - project.getInputSlots(), project.getProjects()); - project.setMultiLayerProjects(multiLayers); + project.child().accept(this, ctx); + if (!project.hasPushedDownToProjectionFunctions()) { Review Comment: add comments to explain why need this if branch -- 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