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 a7396be commit 8e654bcCopy full SHA for 8e654bc
sql/catalyst/src/test/scala/org/apache/spark/sql/types/DecimalSuite.scala
@@ -34,9 +34,11 @@ class DecimalSuite extends SparkFunSuite with PrivateMethodTester {
34
checkDecimal(new Decimal(), "0", 1, 0)
35
checkDecimal(Decimal(BigDecimal("0.09")), "0.09", 3, 2)
36
checkDecimal(Decimal(BigDecimal("0.9")), "0.9", 2, 1)
37
+ checkDecimal(Decimal(BigDecimal("0.90")), "0.90", 3, 2)
38
checkDecimal(Decimal(BigDecimal("1.0")), "1.0", 2, 1)
39
checkDecimal(Decimal(BigDecimal("-0.09")), "-0.09", 3, 2)
40
checkDecimal(Decimal(BigDecimal("-0.9")), "-0.9", 2, 1)
41
+ checkDecimal(Decimal(BigDecimal("-0.90")), "-0.90", 3, 2)
42
checkDecimal(Decimal(BigDecimal("-1.0")), "-1.0", 2, 1)
43
checkDecimal(Decimal(BigDecimal("10.030")), "10.030", 5, 3)
44
checkDecimal(Decimal(BigDecimal("10.030"), 4, 1), "10.0", 4, 1)
0 commit comments