Skip to content

Commit

Permalink
[SQL] remove a decimal case branch that has no effect at runtime
Browse files Browse the repository at this point in the history
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

(cherry picked from commit d793d80)
Signed-off-by: Michael Armbrust <michael@databricks.com>
  • Loading branch information
mengxr authored and marmbrus committed Nov 11, 2014
1 parent 0089a4f commit 1ed1c68
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1ed1c68

Please sign in to comment.