We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee98ed commit 74a00feCopy full SHA for 74a00fe
runtime/src/main/java/io/dingodb/expr/runtime/op/mathematical/AbsCheckFun.java
@@ -30,9 +30,10 @@ abstract class AbsCheckFun extends UnaryNumericOp {
30
31
private static final long serialVersionUID = 6834907753646404442L;
32
33
- static int abs(int num) {
+ static Object abs(int num) {
34
if (num == Integer.MIN_VALUE) {
35
- throw new ExprEvaluatingException(ExceptionUtils.exceedsIntRange());
+ return Math.abs(Long.parseLong(String.valueOf(num)));
36
+ //throw new ExprEvaluatingException(ExceptionUtils.exceedsIntRange());
37
}
38
return Math.abs(num);
39
0 commit comments