YannByron commented on code in PR #6476:
URL: https://github.com/apache/hudi/pull/6476#discussion_r958115947


##########
hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java:
##########
@@ -507,6 +507,26 @@ public static FileStatus[] 
getAllDataFilesInPartition(FileSystem fs, Path partit
     }
   }
 
+  /**
+   * Get the path which has a specified commit and file group id.
+   */
+  public static FileStatus getBaseFile(FileSystem fs, Path partitionPath, 
String fileGroupId, String commitTime) {
+    PathFilter pathFilter = path -> path.getName().startsWith(fileGroupId)
+        && path.getName().endsWith(commitTime + 
HoodieFileFormat.PARQUET.getFileExtension());
+    try {
+      FileStatus[] statuses = fs.listStatus(partitionPath, pathFilter);

Review Comment:
   ok.



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