diff --git a/kyuubi-util-scala/src/test/scala/org/apache/kyuubi/util/MathUtilsSuite.scala b/kyuubi-util-scala/src/test/scala/org/apache/kyuubi/util/MathUtilsSuite.scala index ecc1a87ae5d..dc9b080c8c2 100644 --- a/kyuubi-util-scala/src/test/scala/org/apache/kyuubi/util/MathUtilsSuite.scala +++ b/kyuubi-util-scala/src/test/scala/org/apache/kyuubi/util/MathUtilsSuite.scala @@ -47,5 +47,9 @@ class MathUtilsSuite extends AnyFunSuite { assert(isNonNegativeNumber(" 1.23 ")) assert(!isNonNegativeNumber(" 1. 23 ")) assert(!isNonNegativeNumber(" 1. 23 abc ")) + assert(isNonNegativeNumber(1.123456789012345678901234567890123456789012345678901234567890d)) + assert(!isNonNegativeNumber(-1.123456789012345678901234567890123456789012345678901234567890d)) + assert(isNonNegativeNumber("1.123456789012345678901234567890123456789012345678901234567890")) + assert(!isNonNegativeNumber("-1.123456789012345678901234567890123456789012345678901234567890")) } }