Skip to content

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 <[email protected]>

Closes #11597 from sameeragarwal/bigdecimal.

(cherry picked from commit 926e9c4)
Signed-off-by: Yin Huai <[email protected]>
@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 <[email protected]>

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