Skip to content

[SPARK-25208][SQL][FOLLOW-UP] Reduce code size. - #22352

Closed
ueshin wants to merge 1 commit into
apache:masterfrom
ueshin:issues/SPARK-25208/reduce_code_size
Closed

[SPARK-25208][SQL][FOLLOW-UP] Reduce code size.#22352
ueshin wants to merge 1 commit into
apache:masterfrom
ueshin:issues/SPARK-25208/reduce_code_size

Conversation

@ueshin

@ueshinueshin commented Sep 6, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

cc @cloud-fan

@cloud-fan

Copy link
Copy Markdown
Contributor

LGTM

@SparkQA

Copy link
Copy Markdown

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
Copy Markdown
Contributor

retest this please

@SparkQA

Copy link
Copy Markdown

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
Copy Markdown
MemberAuthor

Jenkins, retest this please.

@SparkQA

Copy link
Copy Markdown

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
Copy Markdown
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 <ueshin@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 1b1711e)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@asfgitasfgit closed this in 1b1711eSep 7, 2018
@ueshin
ueshin deleted the issues/SPARK-25208/reduce_code_size branch August 3, 2026 22:59
Sign up for freeto 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

@ueshin@cloud-fan@SparkQA