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 4aed66f commit ab6d8afCopy full SHA for ab6d8af
sql/catalyst/src/main/scala/org/apache/spark/sql/types/Decimal.scala
@@ -86,7 +86,7 @@ final class Decimal extends Ordered[Decimal] with Serializable {
86
if (precision < 19) {
87
return null // Requested precision is too low to represent this value
88
}
89
- this.decimalVal = BigDecimal(longVal)
+ this.decimalVal = BigDecimal(unscaled)
90
this.longVal = 0L
91
} else {
92
val p = POW_10(math.min(precision, MAX_LONG_DIGITS))
0 commit comments