You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rene Treffer (JIRA)" <ji...@apache.org> on 2015/06/13 15:42:00 UTC
[jira] [Created] (SPARK-8342) Decimal Math beyond ~2^112 is broken
Rene Treffer created SPARK-8342:
-----------------------------------
Summary: 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
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org