GitHub user sameeragarwal opened a pull request: https://github.com/apache/spark/pull/11597
[SPARK-13760][SQL] Fix BigDecimal constructor for FloatType ## 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 You can merge this pull request into a Git repository by running: $ git pull https://github.com/sameeragarwal/spark bigdecimal Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/11597.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #11597 ---- commit 7cd59e74d30bfdbd30445f879448297833e8afd9 Author: Sameer Agarwal <sam...@databricks.com> Date: 2016-03-09T02:29:58Z Fix BigDecimal constructor for float ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org