Skip to content

Commit 76097c8

Browse files
author
gituser
committed
Merge branch 'hotfix_1.10_4.0.x_1579' into 1.10_release_4.0.x
2 parents 15a770c + 25038bb commit 76097c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/com/dtstack/flink/sql/util/MathUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ public static Double getDoubleVal(Object obj) {
129129
return ((BigDecimal) obj).doubleValue();
130130
} else if (obj instanceof Integer) {
131131
return ((Integer) obj).doubleValue();
132+
} else if (obj instanceof BigInteger) {
133+
return ((BigInteger) obj).doubleValue();
132134
}
133135

134136
throw new RuntimeException("not support type of " + obj.getClass() + " convert to Double.");

0 commit comments

Comments
 (0)