diff --git a/pkg/sql/plan/order_binder.go b/pkg/sql/plan/order_binder.go index 18a6cb3ab1e14..7c7e75455640b 100644 --- a/pkg/sql/plan/order_binder.go +++ b/pkg/sql/plan/order_binder.go @@ -38,7 +38,7 @@ func (b *OrderBinder) BindExpr(astExpr tree.Expr) (*plan.Expr, error) { for _, selectField := range b.ctx.projectByAst { if selectField.aliasName != "" { continue - }// deptno + } if projectField, ok1 := selectField.ast.(*tree.UnresolvedName); ok1 && projectField.ColName() == colRef.ColName() { return nil, moerr.NewInvalidInputf(b.GetContext(), "Column '%s' in order clause is ambiguous", colRef.ColName()) }