From f2a6a040edbfced41e22bfc560abd9d0d63db1c7 Mon Sep 17 00:00:00 2001 From: AilinKid <314806019@qq.com> Date: Mon, 29 Jan 2024 13:59:21 +0800 Subject: [PATCH] fix error prefix Signed-off-by: AilinKid <314806019@qq.com> --- pkg/planner/core/logical_plan_builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/planner/core/logical_plan_builder.go b/pkg/planner/core/logical_plan_builder.go index 9cd55c13c3b77..fcc9922e79cb8 100644 --- a/pkg/planner/core/logical_plan_builder.go +++ b/pkg/planner/core/logical_plan_builder.go @@ -1185,7 +1185,7 @@ func (b *PlanBuilder) coalesceCommonColumns(p *LogicalJoin, leftPlan, rightPlan // check left map if cnt, ok := lNameMap[name.ColName.L]; ok { if cnt > 1 { - return ErrAmbiguous.GenWithStackByArgs(name.ColName.L, "from clause") + return plannererrors.ErrAmbiguous.GenWithStackByArgs(name.ColName.L, "from clause") } commonNames = append(commonNames, name.ColName.L) } @@ -1193,7 +1193,7 @@ func (b *PlanBuilder) coalesceCommonColumns(p *LogicalJoin, leftPlan, rightPlan // check right map for _, commonName := range commonNames { if rNameMap[commonName] > 1 { - return ErrAmbiguous.GenWithStackByArgs(commonName, "from clause") + return plannererrors.ErrAmbiguous.GenWithStackByArgs(commonName, "from clause") } } }