leesf commented on a change in pull request #4350:
URL: https://github.com/apache/hudi/pull/4350#discussion_r774396525
##########
File path:
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/MergeOnReadSnapshotRelation.scala
##########
@@ -151,9 +151,8 @@ class MergeOnReadSnapshotRelation(val sqlContext:
SQLContext,
// Load files from the global paths if it has defined to be compatible
with the original mode
val inMemoryFileIndex =
HoodieSparkUtils.createInMemoryFileIndex(sqlContext.sparkSession, globPaths.get)
val fsView = new HoodieTableFileSystemView(metaClient,
- // file-slice after pending compaction-requested instant-time is also
considered valid
-
metaClient.getCommitsAndCompactionTimeline.filterCompletedAndCompactionInstants,
- inMemoryFileIndex.allFiles().toArray)
+ metaClient.getActiveTimeline.getCommitsTimeline
Review comment:
Indeed I do not change it, but just move it from
spark-datasource/hudi-spark module to spark-datasource/hudi-spark-common
module, so strange and changed.
--
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]