Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Sep 6, 2018

What changes were proposed in this pull request?

This is a follow-up pr of #22200.

When casting to decimal type, if Cast.canNullSafeCastToDecimal(), overflow won't happen, so we don't need to check the result of Decimal.changePrecision().

How was this patch tested?

Existing tests.

@ueshin
Copy link
Member Author

ueshin commented Sep 6, 2018

cc @cloud-fan

@cloud-fan
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Sep 6, 2018

Test build #95755 has finished for PR 22352 at commit ee47126.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Sep 6, 2018

Test build #95762 has finished for PR 22352 at commit ee47126.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@ueshin
Copy link
Member Author

ueshin commented Sep 6, 2018

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Sep 6, 2018

Test build #95766 has finished for PR 22352 at commit ee47126.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master/2.4 (since it's a followup)

asfgit pushed a commit that referenced this pull request Sep 7, 2018
## What changes were proposed in this pull request?

This is a follow-up pr of #22200.

When casting to decimal type, if `Cast.canNullSafeCastToDecimal()`, overflow won't happen, so we don't need to check the result of `Decimal.changePrecision()`.

## How was this patch tested?

Existing tests.

Closes #22352 from ueshin/issues/SPARK-25208/reduce_code_size.

Authored-by: Takuya UESHIN <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 1b1711e)
Signed-off-by: Wenchen Fan <[email protected]>
@asfgit asfgit closed this in 1b1711e Sep 7, 2018
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.

3 participants