From 1a0da0ec5799f3226ce238cac03f53fa4f7c9326 Mon Sep 17 00:00:00 2001 From: Michael Armbrust Date: Sat, 31 May 2014 12:34:22 -0700 Subject: [PATCH] [SQL] SPARK-1964 Add timestamp to hive metastore type parser. Author: Michael Armbrust Closes #913 from marmbrus/timestampMetastore and squashes the following commits: 8e0154f [Michael Armbrust] 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 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] =