Skip to content

Commit

Permalink
pick from apache#24159
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 13, 2023
1 parent 913df76 commit 2f1106f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.doris.nereids.processor.post;

import org.apache.doris.nereids.CascadesContext;
import org.apache.doris.nereids.trees.plans.AbstractPlan;
import org.apache.doris.nereids.trees.plans.Plan;
import org.apache.doris.nereids.trees.plans.physical.PhysicalPlan;

Expand All @@ -28,6 +29,9 @@ public class RecomputeLogicalPropertiesProcessor extends PlanPostProcessor {
@Override
public Plan visit(Plan plan, CascadesContext ctx) {
PhysicalPlan physicalPlan = (PhysicalPlan) visitChildren(this, plan, ctx);
physicalPlan = physicalPlan.resetLogicalProperties();
physicalPlan = physicalPlan.withPhysicalPropertiesAndStats(physicalPlan.getPhysicalProperties(),
((AbstractPlan) plan).getStats());
return physicalPlan.resetLogicalProperties();
}
}

0 comments on commit 2f1106f

Please sign in to comment.