Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This is a Spark 2.4.x backport of #23022. Original description follows below:

What changes were proposed in this pull request?

Fix Decimal toScalaBigInt and toJavaBigInteger used to only work for decimals not fitting long.

How was this patch tested?

Added test to DecimalSuite.

… fitting in long

## What changes were proposed in this pull request?

Fix Decimal `toScalaBigInt` and `toJavaBigInteger` used to only work for decimals not fitting long.

## How was this patch tested?

Added test to DecimalSuite.

Closes apache#23022 from juliuszsompolski/SPARK-26038.

Authored-by: Juliusz Sompolski <[email protected]>
Signed-off-by: Herman van Hovell <[email protected]>
@JoshRosen JoshRosen changed the title [SPARK-26038][[BRANCH-2.4]] Decimal toScalaBigInt/toJavaBigInteger for decimals not fitting in long [SPARK-26038][BRANCH-2.4] Decimal toScalaBigInt/toJavaBigInteger for decimals not fitting in long Jun 21, 2019
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you for backporting this, @JoshRosen !

@SparkQA
Copy link

SparkQA commented Jun 21, 2019

Test build #106749 has finished for PR 24928 at commit 19e1421.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Jun 21, 2019

Test build #106760 has finished for PR 24928 at commit 19e1421.

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

JoshRosen pushed a commit that referenced this pull request Jun 21, 2019
…decimals not fitting in long

This is a Spark 2.4.x backport of #23022. Original description follows below:

## What changes were proposed in this pull request?

Fix Decimal `toScalaBigInt` and `toJavaBigInteger` used to only work for decimals not fitting long.

## How was this patch tested?

Added test to DecimalSuite.

Closes #24928 from JoshRosen/joshrosen/SPARK-26038-backport.

Authored-by: Juliusz Sompolski <[email protected]>
Signed-off-by: Josh Rosen <[email protected]>
@JoshRosen
Copy link
Contributor Author

Merged for 2.4.4.

@JoshRosen JoshRosen closed this Jun 21, 2019
@JoshRosen JoshRosen deleted the joshrosen/SPARK-26038-backport branch June 21, 2019 14:58
rluta pushed a commit to rluta/spark that referenced this pull request Sep 17, 2019
…decimals not fitting in long

This is a Spark 2.4.x backport of apache#23022. Original description follows below:

## What changes were proposed in this pull request?

Fix Decimal `toScalaBigInt` and `toJavaBigInteger` used to only work for decimals not fitting long.

## How was this patch tested?

Added test to DecimalSuite.

Closes apache#24928 from JoshRosen/joshrosen/SPARK-26038-backport.

Authored-by: Juliusz Sompolski <[email protected]>
Signed-off-by: Josh Rosen <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Sep 26, 2019
…decimals not fitting in long

This is a Spark 2.4.x backport of apache#23022. Original description follows below:

## What changes were proposed in this pull request?

Fix Decimal `toScalaBigInt` and `toJavaBigInteger` used to only work for decimals not fitting long.

## How was this patch tested?

Added test to DecimalSuite.

Closes apache#24928 from JoshRosen/joshrosen/SPARK-26038-backport.

Authored-by: Juliusz Sompolski <[email protected]>
Signed-off-by: Josh Rosen <[email protected]>
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.

5 participants