soumyakanti3578 commented on code in PR #5307:
URL: https://github.com/apache/hive/pull/5307#discussion_r1733178958


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java:
##########
@@ -835,6 +835,11 @@ public boolean isPartitioned() {
 
   public void setFields(List<FieldSchema> fields) {
     tTable.getSd().setCols(fields);
+    
+    // Add property if any column is of type UNIONTYPE
+    if (fields.stream().anyMatch(fieldSchema -> 
fieldSchema.getType().toLowerCase().contains("uniontype"))) {
+      setProperty("containsUnionType", "true");

Review Comment:
   Good point! Let me think about how to deal with that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to