Skip to content
Snippets Groups Projects
Commit 79064612 authored by Yin Huai's avatar Yin Huai
Browse files

Revert "[SPARK-13760][SQL] Fix BigDecimal constructor for FloatType"

This reverts commit 926e9c45.
parent 926e9c45
No related branches found
No related tags found
No related merge requests found
......@@ -748,7 +748,7 @@ case class Round(child: Expression, scale: Expression)
if (f.isNaN || f.isInfinite) {
f
} else {
BigDecimal.decimal(f).setScale(_scale, HALF_UP).toFloat
BigDecimal(f).setScale(_scale, HALF_UP).toFloat
}
case DoubleType =>
val d = input1.asInstanceOf[Double]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment