Skip to content

Commit 1ed1c68

Browse files
mengxrmarmbrus
authored andcommitted
[SQL] remove a decimal case branch that has no effect at runtime
it generates warnings at compile time marmbrus Author: Xiangrui Meng <[email protected]> Closes #3192 from mengxr/dtc-decimal and squashes the following commits: 955e9fb [Xiangrui Meng] remove a decimal case branch that has no effect (cherry picked from commit d793d80) Signed-off-by: Michael Armbrust <[email protected]>
1 parent 0089a4f commit 1ed1c68

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ protected[sql] object DataTypeConversions {
133133
def convertJavaToCatalyst(a: Any, dataType: DataType): Any = (a, dataType) match {
134134
case (obj, udt: UserDefinedType[_]) => ScalaReflection.convertToCatalyst(obj, udt) // Scala type
135135
case (d: java.math.BigDecimal, _) => Decimal(BigDecimal(d))
136-
case (d: java.math.BigDecimal, _) => BigDecimal(d)
137136
case (other, _) => other
138137
}
139138

0 commit comments

Comments
 (0)