This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 497a9656ac [fix](nereids)Stats missing for some physicalNodes branch
2.0 #24159 (#24249)
497a9656ac is described below
commit 497a9656ac076e7012c9fe1773a68fa15e4fc867
Author: minghong <[email protected]>
AuthorDate: Wed Sep 13 22:17:25 2023 +0800
[fix](nereids)Stats missing for some physicalNodes branch 2.0 #24159
(#24249)
---
.../nereids/processor/post/RecomputeLogicalPropertiesProcessor.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeLogicalPropertiesProcessor.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeLogicalPropertiesProcessor.java
index 835d1425b7..37a858c1a3 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeLogicalPropertiesProcessor.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RecomputeLogicalPropertiesProcessor.java
@@ -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;
@@ -28,6 +29,9 @@ public class RecomputeLogicalPropertiesProcessor extends
PlanPostProcessor {
@Override
public Plan visit(Plan plan, CascadesContext ctx) {
PhysicalPlan physicalPlan = (PhysicalPlan) visitChildren(this, plan,
ctx);
- return physicalPlan.resetLogicalProperties();
+ physicalPlan = physicalPlan.resetLogicalProperties();
+ physicalPlan =
physicalPlan.withPhysicalPropertiesAndStats(physicalPlan.getPhysicalProperties(),
+ ((AbstractPlan) plan).getStats());
+ return physicalPlan;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]