diff options
author | Xiangrui Meng <meng@databricks.com> | 2014-11-10 17:20:52 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-11-10 17:20:52 -0800 |
commit | d793d80c8084923ea04dcf7d268eec8ede490127 (patch) | |
tree | 432f89a829b543d7b78c9ccbbb9df4772956f88c /sql/core/src | |
parent | acb55aeddbe58758d75b9aed130634afe21797cf (diff) | |
download | spark-d793d80c8084923ea04dcf7d268eec8ede490127.tar.gz spark-d793d80c8084923ea04dcf7d268eec8ede490127.tar.bz2 spark-d793d80c8084923ea04dcf7d268eec8ede490127.zip |
[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
Diffstat (limited to 'sql/core/src')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala b/sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala index 3fa4a7c648..9aad7b3df4 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala @@ -133,7 +133,6 @@ protected[sql] object DataTypeConversions { def convertJavaToCatalyst(a: Any, dataType: DataType): Any = (a, dataType) match { case (obj, udt: UserDefinedType[_]) => ScalaReflection.convertToCatalyst(obj, udt) // Scala type case (d: java.math.BigDecimal, _) => Decimal(BigDecimal(d)) - case (d: java.math.BigDecimal, _) => BigDecimal(d) case (other, _) => other } |