GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/7212
[SPARK-8800][SQL] Fix inaccurate precision/scale of Decimal division
operation
JIRA: https://issues.apache.org/jira/browse/SPARK-8800
Previously, we turn to Java BigDecimal's divide with specified
ROUNDING_MODE to avoid non-terminating decimal expansion problem. However, as
@JihongMA reported, for the division operation on some specific values, we get
inaccurate results.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 fix_decimal4
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7212.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #7212
----
commit 4205a0a6db9c043a5b8fa06498ad2afc97c2bc78
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-07-03T14:59:50Z
Fix inaccuracy precision/scale of Decimal division operation.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]