5herhom commented on code in PR #6254:
URL: https://github.com/apache/hudi/pull/6254#discussion_r933926791


##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/HoodieCopyOnWriteTableInputFormat.java:
##########
@@ -254,6 +260,8 @@ private List<FileStatus> listStatusForSnapshotMode(JobConf 
job,
               .stream()
               .flatMap(Collection::stream)
               .map(fileSlice -> createFileStatusUnchecked(fileSlice, 
fileIndex, virtualKeyInfoOpt))
+              .filter(FileStatusOpt -> FileStatusOpt.isPresent())
+              .map(FileStatus -> FileStatus.get())

Review Comment:
   Add these lines to avoid IllegalStateException, when reading optimized query 
to mor with file slice without base file



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