kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject [03/50] [abbrv] incubator-kylin git commit: KYLIN-748 SqlHiveDataTypeMapping
Date Fri, 15 May 2015 03:06:15 GMT
KYLIN-748 SqlHiveDataTypeMapping


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/5a19aae2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/5a19aae2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/5a19aae2

Branch: refs/heads/streaming-localdict
Commit: 5a19aae2b8ab723082825fa399152292f063d6c7
Parents: b376b60
Author: honma <honma@ebay.com>
Authored: Mon May 4 18:23:03 2015 +0800
Committer: honma <honma@ebay.com>
Committed: Mon May 4 18:23:03 2015 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/5a19aae2/job/src/main/java/org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java
----------------------------------------------------------------------
diff --git a/job/src/main/java/org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java
b/job/src/main/java/org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java
index 0aec98f..f710d34 100644
--- a/job/src/main/java/org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java
+++ b/job/src/main/java/org/apache/kylin/job/hadoop/hive/SqlHiveDataTypeMapping.java
@@ -26,6 +26,8 @@ public class SqlHiveDataTypeMapping {
 
     public static String getHiveDataType(String javaDataType) {
         String hiveDataType = javaDataType.toLowerCase().startsWith("varchar") ? "string"
: javaDataType;
+        hiveDataType = javaDataType.toLowerCase().startsWith("integer") ? "int" : hiveDataType;
+
         return hiveDataType.toLowerCase();
     }
 }


Mime
View raw message