morrySnow commented on code in PR #46171:
URL: https://github.com/apache/doris/pull/46171#discussion_r1900622093


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeOutputProcessor.java:
##########
@@ -22,13 +22,14 @@
 import org.apache.doris.nereids.trees.plans.physical.AbstractPhysicalPlan;
 
 /**
- * merge consecutive projects
+ * recompute output in logical properties
+ * after join reorder, plan output slot order is changed, recompute them.
  */
-public class RecomputeLogicalPropertiesProcessor extends PlanPostProcessor {
+public class RecomputeOutputProcessor extends PlanPostProcessor {
     @Override
     public Plan visit(Plan plan, CascadesContext ctx) {
         AbstractPhysicalPlan newPlan = (AbstractPhysicalPlan) 
visitChildren(this, plan, ctx);
-        return ((AbstractPhysicalPlan) newPlan.resetLogicalProperties())
+        return ((AbstractPhysicalPlan) newPlan.reComputeOutput())

Review Comment:
   why change this to only recompute output?



##########
fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeOutputProcessor.java:
##########
@@ -22,13 +22,14 @@
 import org.apache.doris.nereids.trees.plans.physical.AbstractPhysicalPlan;
 
 /**
- * merge consecutive projects
+ * recompute output in logical properties
+ * after join reorder, plan output slot order is changed, recompute them.
  */
-public class RecomputeLogicalPropertiesProcessor extends PlanPostProcessor {
+public class RecomputeOutputProcessor extends PlanPostProcessor {

Review Comment:
   why rename this file? RecomputeLogicalProperties is more accurate



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to