xicm commented on code in PR #11250:
URL: https://github.com/apache/hudi/pull/11250#discussion_r1604287483


##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java:
##########
@@ -420,9 +420,7 @@ protected Map<Pair<String, StoragePath>, 
List<StoragePathInfo>> listPartitions(
         pathInfoMap.put(partitionPair,
             metaClient.getStorage().listDirectEntries(absolutePartitionPath));
       } catch (IOException e) {
-        // Create the path if it does not exist already
         if (!metaClient.getStorage().exists(absolutePartitionPath)) {
-          metaClient.getStorage().createDirectory(absolutePartitionPath);

Review Comment:
   If we enable Partition TTL, this will leave empty partition directories.



-- 
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]

Reply via email to