ZihanLi58 commented on a change in pull request #3364:
URL: https://github.com/apache/gobblin/pull/3364#discussion_r688743116
##########
File path:
gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/metastore/HiveMetaStoreUtils.java
##########
@@ -421,6 +425,19 @@ private static Deserializer
getDeserializer(HiveRegistrationUnit unit) {
return deserializer;
}
+ public static void updateColumnsInfo(HiveSpec spec) throws IOException {
+ HiveTable table = spec.getTable();
+ if (table.getSerDeProps().contains(serdeConstants.LIST_COLUMNS)) {
+ if (table.getSerDeManager().isPresent()) {
+ String path = spec.getPartition().isPresent() &&
spec.getPartition().get().getLocation().isPresent() ? spec.getPartition()
Review comment:
Yeah, in OrcSerDeManager, if no avro shcema literal is set, it will try
to list the path to get the latest file's schema, even it's not gonna to happen
in our case, just want to make sure the list operation is as small as possible
even something goes wrong
--
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]