From 8e0154fe55027ed5eafe59bb5622707f738248b2 Mon Sep 17 00:00:00 2001 From: Michael Armbrust Date: Thu, 29 May 2014 09:46:41 -0700 Subject: [PATCH] Add timestamp to hive metastore type parser. --- .../scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala | 1 + 1 file changed, 1 insertion(+) 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 9f74e0334f72..a91b52076534 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] =