[ https://issues.apache.org/jira/browse/SPARK-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-8342. -------------------------------- Resolution: Fixed Fix Version/s: 1.5.0 Assignee: Liang-Chi Hsieh > Decimal Math beyond ~2^112 is broken > ------------------------------------ > > Key: SPARK-8342 > URL: https://issues.apache.org/jira/browse/SPARK-8342 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.5.0 > Reporter: Rene Treffer > Assignee: Liang-Chi Hsieh > Fix For: 1.5.0 > > > Here is a snippet from the spark-shell that should not happen > {code} > 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}) > {code} > It looks like precision gets reseted on some operations and values are then > truncated. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org