abstractdog commented on code in PR #6443:
URL: https://github.com/apache/hive/pull/6443#discussion_r3217929168


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java:
##########
@@ -2286,6 +2286,14 @@ public static List<String> 
getColumnNamesFromFieldSchema(List<FieldSchema> partC
     return names;
   }
 
+  public static List<String> getColumnTypesFromFieldSchema(List<FieldSchema> 
fieldSchemas) {
+    List<String> types = new ArrayList<>();
+    for (FieldSchema fs : fieldSchemas) {
+      types.add(fs.getType());
+    }
+    return types;

Review Comment:
   what about: `return 
fieldSchemas.stream().map(FieldSchema::getType).toList();`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to