Skip to content

Commit

Permalink
fix error prefix
Browse files Browse the repository at this point in the history
Signed-off-by: AilinKid <314806019@qq.com>
  • Loading branch information
AilinKid committed Jan 29, 2024
1 parent 1acdd9a commit f2a6a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/planner/core/logical_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,15 +1185,15 @@ 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)
}
}
// check right map
for _, commonName := range commonNames {
if rNameMap[commonName] > 1 {
return ErrAmbiguous.GenWithStackByArgs(commonName, "from clause")
return plannererrors.ErrAmbiguous.GenWithStackByArgs(commonName, "from clause")
}
}
}
Expand Down

0 comments on commit f2a6a04

Please sign in to comment.