diff --git a/pkg/sql/plan2/build_expr.go b/pkg/sql/plan2/build_expr.go index 06a65434a63542884ea6d49c71e18550da999ae0..c4d9d48b8d1390cf5297b8903f668190346f43fa 100644 --- a/pkg/sql/plan2/build_expr.go +++ b/pkg/sql/plan2/build_expr.go @@ -457,8 +457,7 @@ func buildBinaryExpr(astExpr *tree.BinaryExpr, ctx CompilerContext, query *Query case tree.DIV: return getFunctionExprByNameAndAstExprs("/", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg) case tree.INTEGER_DIV: - // todo confirm what is the difference from tree.DIV - return getFunctionExprByNameAndAstExprs("/", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg) + return getFunctionExprByNameAndAstExprs("div", []tree.Expr{astExpr.Left, astExpr.Right}, ctx, query, node, binderCtx, needAgg) } return nil, false, errors.New(errno.SyntaxErrororAccessRuleViolation, fmt.Sprintf("'%v' is not support now", astExpr))