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


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieFileIndex.scala:
##########
@@ -243,19 +237,21 @@ case class HoodieFileIndex(spark: SparkSession,
       prunePartitionsAndGetFileSlices(dataFilters, partitionFilters)
     hasPushedDownPartitionPredicates = true
 
+    val prunedPartitionsAndFileSlicesWithLogs = 
prunedPartitionsAndFileSlices.map(s => (s._1, s._2.map(f => 
f.withLogFiles(includeLogFiles))))

Review Comment:
   Let's add the transformation in `prunePartitionsAndGetFileSlices` instead of 
here
   ```
       (prunedPartitionsTuple._1, getInputFileSlices(prunedPartitionsTuple._2: 
_*).asScala.map(
         { case (partition, fileSlices) => (Option.apply(partition), 
fileSlices.asScala.map(f => f.withLogFiles(includeLogFiles)).toSeq) }).toSeq)
   ```



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