File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -414,9 +414,7 @@ object HiveContext {
414414 case (d : Date , DateType ) => new DateWritable (d).toString
415415 case (t : Timestamp , TimestampType ) => new TimestampWritable (t).toString
416416 case (bin : Array [Byte ], BinaryType ) => new String (bin, " UTF-8" )
417- case (decimal : Decimal , DecimalType ()) => // Hive strips trailing zeros so use its toString
418- HiveShim .createDecimal(decimal.toBigDecimal.underlying()).toString
419- case (decimal : BigDecimal , DecimalType ()) =>
417+ case (decimal : BigDecimal , DecimalType ()) => // Hive strips trailing zeros so use its toString
420418 HiveShim .createDecimal(decimal.underlying()).toString
421419 case (other, tpe) if primitiveTypes contains tpe => other.toString
422420 }
You can’t perform that action at this time.
0 commit comments