Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13760][SQL] Fix BigDecimal constructor for FloatType #11597

Closed
wants to merge 1 commit into from

Conversation

sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

A very minor change for using BigDecimal.decimal(f: Float) instead of BigDecimal(f: float). The latter is deprecated and can result in inconsistencies due to an implicit conversion to Double.

How was this patch tested?

N/A

cc @yhuai

@SparkQA
Copy link

SparkQA commented Mar 9, 2016

Test build #52717 has finished for PR 11597 at commit 7cd59e7.

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

@srowen
Copy link
Member

srowen commented Mar 9, 2016

LGTM

asfgit pushed a commit that referenced this pull request Mar 10, 2016
## What changes were proposed in this pull request?

A very minor change for using `BigDecimal.decimal(f: Float)` instead of `BigDecimal(f: float)`. The latter is deprecated and can result in inconsistencies due to an implicit conversion to `Double`.

## How was this patch tested?

N/A

cc yhuai

Author: Sameer Agarwal <sameer@databricks.com>

Closes #11597 from sameeragarwal/bigdecimal.

(cherry picked from commit 926e9c4)
Signed-off-by: Yin Huai <yhuai@databricks.com>
@yhuai
Copy link
Contributor

yhuai commented Mar 10, 2016

Thanks! Merged to master and branch 1.6.

@asfgit asfgit closed this in 926e9c4 Mar 10, 2016
@yhuai
Copy link
Contributor

yhuai commented Mar 10, 2016

Seems it breaks the scala 2.10 build. I am reverting it from both master and branch 1.6.

@sameeragarwal
Copy link
Member Author

Thanks yin, sorry for the inconvenience!

roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
## What changes were proposed in this pull request?

A very minor change for using `BigDecimal.decimal(f: Float)` instead of `BigDecimal(f: float)`. The latter is deprecated and can result in inconsistencies due to an implicit conversion to `Double`.

## How was this patch tested?

N/A

cc yhuai

Author: Sameer Agarwal <sameer@databricks.com>

Closes apache#11597 from sameeragarwal/bigdecimal.
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.

4 participants