You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/12/08 06:13:23 UTC

[GitHub] [hudi] nsivabalan commented on a diff in pull request #7393: [HUDI-5336] Fixing parsing of log files while building file groups

nsivabalan commented on code in PR #7393:
URL: https://github.com/apache/hudi/pull/7393#discussion_r1042964525


##########
hudi-common/src/main/java/org/apache/hudi/common/table/view/AbstractTableFileSystemView.java:
##########
@@ -366,8 +367,10 @@ private Stream<HoodieBaseFile> convertFileStatusesToBaseFiles(FileStatus[] statu
    * @param statuses List of FIle-Status
    */
   private Stream<HoodieLogFile> convertFileStatusesToLogFiles(FileStatus[] statuses) {
-    Predicate<FileStatus> rtFilePredicate = fileStatus -> fileStatus.getPath().getName()
-        .contains(metaClient.getTableConfig().getLogFileFormat().getFileExtension());
+    Predicate<FileStatus> rtFilePredicate = fileStatus ->  {
+      Matcher matcher = FSUtils.LOG_FILE_PATTERN.matcher(fileStatus.getPath().getName());
+      return matcher.find();

Review Comment:
   makes sense. will fix it.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org