Skip to content
Snippets Groups Projects
Commit d793d80c authored by Xiangrui Meng's avatar Xiangrui Meng Committed by Michael Armbrust
Browse files

[SQL] remove a decimal case branch that has no effect at runtime

it generates warnings at compile time marmbrus

Author: Xiangrui Meng <meng@databricks.com>

Closes #3192 from mengxr/dtc-decimal and squashes the following commits:

955e9fb [Xiangrui Meng] remove a decimal case branch that has no effect
parent acb55aed
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,6 @@ protected[sql] object DataTypeConversions { ...@@ -133,7 +133,6 @@ protected[sql] object DataTypeConversions {
def convertJavaToCatalyst(a: Any, dataType: DataType): Any = (a, dataType) match { def convertJavaToCatalyst(a: Any, dataType: DataType): Any = (a, dataType) match {
case (obj, udt: UserDefinedType[_]) => ScalaReflection.convertToCatalyst(obj, udt) // Scala type case (obj, udt: UserDefinedType[_]) => ScalaReflection.convertToCatalyst(obj, udt) // Scala type
case (d: java.math.BigDecimal, _) => Decimal(BigDecimal(d)) case (d: java.math.BigDecimal, _) => Decimal(BigDecimal(d))
case (d: java.math.BigDecimal, _) => BigDecimal(d)
case (other, _) => other case (other, _) => other
} }
......
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