diff --git a/expression/expression.go b/expression/expression.go index 2e40952b1582a..a82f6d774830a 100644 --- a/expression/expression.go +++ b/expression/expression.go @@ -1174,6 +1174,14 @@ func scalarExprSupportedByFlash(function *ScalarFunction) bool { default: return false } + case ast.Round: + switch function.Function.PbCode() { + case tipb.ScalarFuncSig_RoundInt, tipb.ScalarFuncSig_RoundReal, + tipb.ScalarFuncSig_RoundDec: + return true + default: + return false + } default: return false }