Skip to content

Commit a60d680

Browse files
committed
fix test failure
1 parent 0db7ce8 commit a60d680

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ object HiveContext {
416416
case (bin: Array[Byte], BinaryType) => new String(bin, "UTF-8")
417417
case (decimal: Decimal, DecimalType()) => // Hive strips trailing zeros so use its toString
418418
HiveShim.createDecimal(decimal.toBigDecimal.underlying()).toString
419+
case (decimal: BigDecimal, DecimalType()) =>
420+
HiveShim.createDecimal(decimal.underlying()).toString
419421
case (other, tpe) if primitiveTypes contains tpe => other.toString
420422
case (a, b) => println(a.getClass); println(b.getClass);
421423
println(a.toString + " " + b.toString);

0 commit comments

Comments
 (0)