From ae9e88f0ca53530a3c6c2ea85c5f9155c9f97e1e Mon Sep 17 00:00:00 2001 From: "Wang, Fei" Date: Mon, 25 Mar 2024 23:55:55 -0700 Subject: [PATCH] [KYUUBI #2782][FOLLOWUP] Add missed UNION_TYPE back MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description ## Issue References ๐Ÿ”— This pull request fixes # Fix https://github.com/apache/kyuubi/pull/6207#discussion_r1538539729 ## Describe Your Solution ๐Ÿ”ง Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช #### Behavior Without This Pull Request :coffin: #### Behavior With This Pull Request :tada: #### Related Unit Tests --- # Checklist ๐Ÿ“ - [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6209 from turboFei/fix_union_type. Closes #2782 622c838cd [Wang, Fei] miss Authored-by: Wang, Fei Signed-off-by: Wang, Fei --- .../src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java b/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java index f80a42daba1..a0fb967a51b 100644 --- a/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java +++ b/kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java @@ -241,6 +241,8 @@ static String getColumnTypeName(TTypeId type) throws SQLException { return "struct"; case NULL_TYPE: return "void"; + case UNION_TYPE: + return "uniontype"; case USER_DEFINED_TYPE: return "user_defined"; default: