danny0405 commented on code in PR #12385:
URL: https://github.com/apache/hudi/pull/12385#discussion_r1864743883


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/MergeOnReadIncrementalRelation.scala:
##########
@@ -209,7 +209,14 @@ trait HoodieIncrementalRelationTrait extends 
HoodieBaseRelation {
 
   protected lazy val includedCommits: immutable.Seq[HoodieInstant] = 
queryContext.getInstants.asScala.toList
 
-  protected lazy val commitsMetadata = 
includedCommits.map(getCommitMetadata(_, super.timeline)).asJava
+  protected lazy val commitsMetadata = includedCommits.map(
+    i => {

Review Comment:
   I have checked the usage of this `commitsMetadata`, it decodes the data 
files and use a `fs.exists` check for the data files as a part of the fallback 
strategy. So the fix should be reasonable.



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