Skip to content
Snippets Groups Projects
Commit a4aafe5f authored by Michael Armbrust's avatar Michael Armbrust Committed by Reynold Xin
Browse files

[SQL] Fix tiny/small ints from HiveMetastore.

Author: Michael Armbrust <michael@databricks.com>

Closes #797 from marmbrus/smallInt and squashes the following commits:

2db9dae [Michael Armbrust] Fix tiny/small ints from HiveMetastore.
parent e66e31be
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,8 @@ object HiveMetastoreTypes extends RegexParsers {
"string" ^^^ StringType |
"float" ^^^ FloatType |
"int" ^^^ IntegerType |
"tinyint" ^^^ ShortType |
"tinyint" ^^^ ByteType |
"smallint" ^^^ ShortType |
"double" ^^^ DoubleType |
"bigint" ^^^ LongType |
"binary" ^^^ BinaryType |
......@@ -227,7 +228,8 @@ object HiveMetastoreTypes extends RegexParsers {
case StringType => "string"
case FloatType => "float"
case IntegerType => "int"
case ShortType =>"tinyint"
case ByteType => "tinyint"
case ShortType => "smallint"
case DoubleType => "double"
case LongType => "bigint"
case BinaryType => "binary"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment