5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 06:09:47 +08:00

Hive DDL generator uses INTEGER when it means INT.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:03:40 +00:00
parent 9374ed8398
commit 0fde7dff8d

View File

@ -56,7 +56,7 @@ public static String toHiveType(int sqlType) {
} else if (sqlType == Types.TINYINT) { } else if (sqlType == Types.TINYINT) {
return "TINYINT"; return "TINYINT";
} else if (sqlType == Types.SMALLINT) { } else if (sqlType == Types.SMALLINT) {
return "INTEGER"; return "INT";
} else if (sqlType == Types.BIGINT) { } else if (sqlType == Types.BIGINT) {
return "BIGINT"; return "BIGINT";
} else if (sqlType == Types.REAL) { } else if (sqlType == Types.REAL) {