difin commented on code in PR #6506:
URL: https://github.com/apache/hive/pull/6506#discussion_r3529732099
##########
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java:
##########
@@ -438,6 +439,20 @@ public static MessageType getRequestedSchema(
}
}
+ public static MessageType getTableParquetSchema(Configuration configuration,
MessageType fileSchema,
+ Map<String, String> metadata) {
+ String columnNames = configuration.get(IOConstants.COLUMNS);
+ String columnTypes = configuration.get(IOConstants.COLUMNS_TYPES);
+ if (columnNames != null && !columnNames.isEmpty() && columnTypes != null
&& !columnTypes.isEmpty()) {
Review Comment:
Can we simplify these conditions using `StringUtils.isNotEmpty`?
--
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]