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.