codope commented on code in PR #7393:
URL: https://github.com/apache/hudi/pull/7393#discussion_r1041804423
##########
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:
Should we check for both this pattern as well as log file extension?
--
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]