GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/8031
[SPARK-4176] [SQL] [MINOR] Should use unscaled Long to write decimals for
precision <= 18 rather than 8
This PR fixes a minor bug introduced in #7455: when writing decimals, we
should use the unscaled Long for better performance when the precision <= 18
rather than 8 (should be a typo). This bug doesn't affect correctness, but
hurts Parquet decimal writing performance.
This PR also replaced similar magic numbers with newly defined constants.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark
spark-4176/minor-fix-for-writing-decimals
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8031.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 #8031
----
commit 10d4ea3c87837e3c4b5b13535499ccd3a8f853b6
Author: Cheng Lian <[email protected]>
Date: 2015-08-07T12:29:17Z
Should use unscaled Long to write decimals for precision <= 18 rather than 8
----
---
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]