diff options
author | Michael Armbrust <michael@databricks.com> | 2014-05-31 12:34:22 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-05-31 12:34:22 -0700 |
commit | 1a0da0ec5799f3226ce238cac03f53fa4f7c9326 (patch) | |
tree | 8e34d306c226fc595c383ead3fd3693d2d359f59 /sql/hive | |
parent | 7463cd248f81975bce9ff864002932864bd5b649 (diff) | |
download | spark-1a0da0ec5799f3226ce238cac03f53fa4f7c9326.tar.gz spark-1a0da0ec5799f3226ce238cac03f53fa4f7c9326.tar.bz2 spark-1a0da0ec5799f3226ce238cac03f53fa4f7c9326.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.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala | 1 |
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] = |