From 5d1a4f343f11606af5f45d1db4d58ca31a59e524 Mon Sep 17 00:00:00 2001 From: Matt Burgess Date: Tue, 23 Aug 2016 11:54:09 -0400 Subject: [PATCH] NIFI-2622: Added support for complex types in SelectHiveQL This closes #922. Signed-off-by: Bryan Bende --- .../main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java index afb8104880..d4b2945d53 100644 --- a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java +++ b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/main/java/org/apache/nifi/util/hive/HiveJdbcCommon.java @@ -55,6 +55,7 @@ import static java.sql.Types.DECIMAL; import static java.sql.Types.DOUBLE; import static java.sql.Types.FLOAT; import static java.sql.Types.INTEGER; +import static java.sql.Types.JAVA_OBJECT; import static java.sql.Types.LONGNVARCHAR; import static java.sql.Types.LONGVARBINARY; import static java.sql.Types.LONGVARCHAR; @@ -64,6 +65,7 @@ import static java.sql.Types.NVARCHAR; import static java.sql.Types.REAL; import static java.sql.Types.ROWID; import static java.sql.Types.SMALLINT; +import static java.sql.Types.STRUCT; import static java.sql.Types.TIME; import static java.sql.Types.TIMESTAMP; import static java.sql.Types.TINYINT; @@ -211,6 +213,8 @@ public class HiveJdbcCommon { case NVARCHAR: case VARCHAR: case ARRAY: + case STRUCT: + case JAVA_OBJECT: builder.name(columnName).type().unionOf().nullBuilder().endNull().and().stringType().endUnion().noDefault(); break;