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


##########
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:
   Created HUDI-8624 to revisit why we need commit metadata from timeline 
history. For now looks like we need this logic. If full table scan is enabled, 
`commitsMetadata` is not loaded since it's lazy.



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