[Chore](regression) Fix wrong result for decimal (#13644)

This commit is contained in:
Gabriel
2022-10-26 09:24:46 +08:00
committed by GitHub
parent b13061360f
commit e00734348b
81 changed files with 22589 additions and 1544 deletions

View File

@ -1223,6 +1223,11 @@ public class FunctionCallExpr extends Expr {
}
}
if (this.type.isDecimalV2()) {
this.type = Type.MAX_DECIMALV2_TYPE;
fn.setReturnType(Type.MAX_DECIMALV2_TYPE);
}
if (this.type.isDecimalV3()) {
// DECIMAL need to pass precision and scale to be
if (DECIMAL_FUNCTION_SET.contains(fn.getFunctionName().getFunction())