Description
Here is a snippet from the spark-shell that should not happen
scala> val d = Decimal(Long.MaxValue,100,0) * Decimal(Long.MaxValue,100,0) d: org.apache.spark.sql.types.Decimal = 0 scala> d.toDebugString res3: String = Decimal(expanded,0,1,0})
It looks like precision gets reseted on some operations and values are then truncated.
Attachments
Issue Links
- links to