diff options
author | Patrick Wendell <patrick@databricks.com> | 2015-02-02 17:52:17 -0800 |
---|---|---|
committer | Patrick Wendell <patrick@databricks.com> | 2015-02-02 17:52:17 -0800 |
commit | eccb9fbb2d1bf6f7c65fb4f017e9205bb3034ec6 (patch) | |
tree | f622b1610261ccdafc8aa27578f16e0e27ad4701 /sql/hive/v0.12.0/src | |
parent | cfea30037ff4ac7e386a1478e7dce07ca3bb9072 (diff) | |
download | spark-eccb9fbb2d1bf6f7c65fb4f017e9205bb3034ec6.tar.gz spark-eccb9fbb2d1bf6f7c65fb4f017e9205bb3034ec6.tar.bz2 spark-eccb9fbb2d1bf6f7c65fb4f017e9205bb3034ec6.zip |
Revert "[SPARK-4508] [SQL] build native date type to conform behavior to Hive"
This reverts commit 1646f89d967913ee1f231d9606f8502d13c25804.
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 b5a0754ff6..254919e8f6 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 @@ -160,7 +160,7 @@ private[hive] object HiveShim { if (value == null) null else new hadoopIo.BytesWritable(value.asInstanceOf[Array[Byte]]) def getDateWritable(value: Any): hiveIo.DateWritable = - if (value == null) null else new hiveIo.DateWritable(value.asInstanceOf[Int]) + if (value == null) null else new hiveIo.DateWritable(value.asInstanceOf[java.sql.Date]) def getTimestampWritable(value: Any): hiveIo.TimestampWritable = if (value == null) { |