We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db7ce8 commit a60d680Copy full SHA for a60d680
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -416,6 +416,8 @@ object HiveContext {
416
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()) =>
420
+ HiveShim.createDecimal(decimal.underlying()).toString
421
case (other, tpe) if primitiveTypes contains tpe => other.toString
422
case (a, b) => println(a.getClass); println(b.getClass);
423
println(a.toString + " " + b.toString);
0 commit comments