GitHub user davies opened a pull request: https://github.com/apache/spark/pull/8287
[SPARK-10090] [SQL] fix decimal scale of division In TPCDS Q59, the result should be DecimalType(37, 20), but got Decimal('0.69903637110664268591656984574863203607'), should be Decimal('0.69903637110664268592'). TODO: add regression tests (we have low coverage for DecimalType in Cast) You can merge this pull request into a Git repository by running: $ git pull https://github.com/davies/spark decimal_division Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8287.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 #8287 ---- commit 3d5f0911d6df431273fd2d3753df9c4241a9107c Author: Davies Liu <dav...@databricks.com> Date: 2015-08-18T22:09:52Z fix decimal precision of division ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org