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 <[email protected]>

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

955e9fb [Xiangrui Meng] remove a decimal case branch that has no effect
  • Loading branch information
mengxr authored and marmbrus committed Nov 11, 2014
1 parent acb55ae commit d793d80
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 d793d80

Please sign in to comment.