hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject hive git commit: HIVE-17259 : Hive JDBC does not recognize UNIONTYPE columns (Pierre Villard via Ashutosh Chauhan)
Date Tue, 07 Nov 2017 18:34:46 GMT
Repository: hive
Updated Branches:
  refs/heads/master 71a92c2a2 -> 945404273


HIVE-17259 : Hive JDBC does not recognize UNIONTYPE columns (Pierre Villard via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/94540427
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/94540427
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/94540427

Branch: refs/heads/master
Commit: 945404273f330f6d1d316465baf540c7fec04d3a
Parents: 71a92c2
Author: Pierre Villard <pierre.villard.fr@gmail.com>
Authored: Tue Nov 7 10:33:59 2017 -0800
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Tue Nov 7 10:33:59 2017 -0800

----------------------------------------------------------------------
 jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/94540427/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
----------------------------------------------------------------------
diff --git a/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java b/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
index 8d9604e..9841dde 100644
--- a/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
+++ b/jdbc/src/java/org/apache/hive/jdbc/JdbcColumn.java
@@ -161,6 +161,8 @@ public class JdbcColumn {
       return Type.ARRAY_TYPE;
     } else if ("struct".equalsIgnoreCase(type)) {
       return Type.STRUCT_TYPE;
+    } else if ("uniontype".equalsIgnoreCase(type)) {
+      return Type.UNION_TYPE;
     } else if ("void".equalsIgnoreCase(type) || "null".equalsIgnoreCase(type)) {
       return Type.NULL_TYPE;
     }


Mime
View raw message