From 715acec7bb5328f11ba679fba97ed2f4f71bf1da Mon Sep 17 00:00:00 2001 From: AilinKid <314806019@qq.com> Date: Wed, 14 Aug 2024 14:06:14 +0800 Subject: [PATCH] . Signed-off-by: AilinKid <314806019@qq.com> --- pkg/planner/core/logical_plans.go | 1 + pkg/planner/core/operator/logicalop/logical_union_all.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/planner/core/logical_plans.go b/pkg/planner/core/logical_plans.go index b1c956eea5ed6..d7b08397a4bbc 100644 --- a/pkg/planner/core/logical_plans.go +++ b/pkg/planner/core/logical_plans.go @@ -32,6 +32,7 @@ var ( _ base.LogicalPlan = &LogicalTableScan{} _ base.LogicalPlan = &LogicalIndexScan{} _ base.LogicalPlan = &logicalop.LogicalUnionAll{} + _ base.LogicalPlan = &logicalop.LogicalPartitionUnionAll{} _ base.LogicalPlan = &logicalop.LogicalSort{} _ base.LogicalPlan = &logicalop.LogicalLock{} _ base.LogicalPlan = &logicalop.LogicalLimit{} diff --git a/pkg/planner/core/operator/logicalop/logical_union_all.go b/pkg/planner/core/operator/logicalop/logical_union_all.go index 2c96e96326b2c..8b1c9b77dd930 100644 --- a/pkg/planner/core/operator/logicalop/logical_union_all.go +++ b/pkg/planner/core/operator/logicalop/logical_union_all.go @@ -170,7 +170,7 @@ func (p *LogicalUnionAll) DeriveStats(childStats []*property.StatsInfo, selfSche // ExhaustPhysicalPlans implements base.LogicalPlan.<14th> interface. func (p *LogicalUnionAll) ExhaustPhysicalPlans(prop *property.PhysicalProperty) ([]base.PhysicalPlan, bool, error) { - return utilfuncp.ExhaustPhysicalPlans4LogicalPartitionUnionAll(p, prop) + return utilfuncp.ExhaustPhysicalPlans4LogicalUnionAll(p, prop) } // ExtractCorrelatedCols inherits BaseLogicalPlan.LogicalPlan.<15th> implementation.