Skip to content

Conversation

@liancheng
Copy link
Contributor

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.

@SparkQA
Copy link

SparkQA commented Aug 7, 2015

Test build #40169 has finished for PR 8031 at commit 10d4ea3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor Author

Merging to master and branch-1.5.

@asfgit asfgit closed this in 11caf1c Aug 8, 2015
asfgit pushed a commit that referenced this pull request Aug 8, 2015
… 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.

Author: Cheng Lian <[email protected]>

Closes #8031 from liancheng/spark-4176/minor-fix-for-writing-decimals and squashes the following commits:

10d4ea3 [Cheng Lian] Should use unscaled Long to write decimals for precision <= 18 rather than 8

(cherry picked from commit 11caf1c)
Signed-off-by: Cheng Lian <[email protected]>
@liancheng liancheng deleted the spark-4176/minor-fix-for-writing-decimals branch August 8, 2015 10:11
CodingCat pushed a commit to CodingCat/spark that referenced this pull request Aug 17, 2015
… for precision <= 18 rather than 8

This PR fixes a minor bug introduced in apache#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.

Author: Cheng Lian <[email protected]>

Closes apache#8031 from liancheng/spark-4176/minor-fix-for-writing-decimals and squashes the following commits:

10d4ea3 [Cheng Lian] Should use unscaled Long to write decimals for precision <= 18 rather than 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants