diff options
author | Reynold Xin <rxin@databricks.com> | 2015-01-18 11:01:42 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-01-18 11:01:42 -0800 |
commit | 1727e0841cf9948e601ae2936fe89094c8c0c835 (patch) | |
tree | 6017e327a6ca2b7a42c8a102d1c6c3a889aa8628 /sql/hive/v0.12.0/src | |
parent | ad16da1bcc500d0fe594853cd00470dc34b007fa (diff) | |
download | spark-1727e0841cf9948e601ae2936fe89094c8c0c835.tar.gz spark-1727e0841cf9948e601ae2936fe89094c8c0c835.tar.bz2 spark-1727e0841cf9948e601ae2936fe89094c8c0c835.zip |
[SPARK-5279][SQL] Use java.math.BigDecimal as the exposed Decimal type.
Author: Reynold Xin <rxin@databricks.com>
Closes #4092 from rxin/bigdecimal and squashes the following commits:
27b08c9 [Reynold Xin] Fixed test.
10cb496 [Reynold Xin] [SPARK-5279][SQL] Use java.math.BigDecimal as the exposed Decimal type.
Diffstat (limited to 'sql/hive/v0.12.0/src')
-rw-r--r-- | sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala b/sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala index 58417a15bb..c0b7741bc3 100644 --- a/sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala +++ b/sql/hive/v0.12.0/src/main/scala/org/apache/spark/sql/hive/Shim12.scala @@ -174,7 +174,7 @@ private[hive] object HiveShim { null } else { new hiveIo.HiveDecimalWritable( - HiveShim.createDecimal(value.asInstanceOf[Decimal].toBigDecimal.underlying())) + HiveShim.createDecimal(value.asInstanceOf[Decimal].toJavaBigDecimal)) } def getPrimitiveNullWritable: NullWritable = NullWritable.get() |