aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/main
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2014-05-31 12:34:22 -0700
committerReynold Xin <rxin@apache.org>2014-05-31 12:34:31 -0700
commit8575d8809f9062dc87ca72c57c0de42ec570118f (patch)
treec2d1d187fd77d83f7148b9ac2dead1bdf9a863f2 /sql/hive/src/main
parentcefc6404abb9864f36740870970ea1ceea2646d0 (diff)
downloadspark-8575d8809f9062dc87ca72c57c0de42ec570118f.tar.gz
spark-8575d8809f9062dc87ca72c57c0de42ec570118f.tar.bz2
spark-8575d8809f9062dc87ca72c57c0de42ec570118f.zip
[SQL] SPARK-1964 Add timestamp to hive metastore type parser.
Author: Michael Armbrust <michael@databricks.com> Closes #913 from marmbrus/timestampMetastore and squashes the following commits: 8e0154f [Michael Armbrust] Add timestamp to hive metastore type parser. (cherry picked from commit 1a0da0ec5799f3226ce238cac03f53fa4f7c9326) Signed-off-by: Reynold Xin <rxin@apache.org>
Diffstat (limited to 'sql/hive/src/main')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
index 9f74e0334f..a91b520765 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
@@ -190,6 +190,7 @@ object HiveMetastoreTypes extends RegexParsers {
"binary" ^^^ BinaryType |
"boolean" ^^^ BooleanType |
"decimal" ^^^ DecimalType |
+ "timestamp" ^^^ TimestampType |
"varchar\\((\\d+)\\)".r ^^^ StringType
protected lazy val arrayType: Parser[DataType] =