gengliangwang commented on a change in pull request #27129: [SPARK-30427][SQL]
Add config item for limiting partition number when calculating statistics
through File System
URL: https://github.com/apache/spark/pull/27129#discussion_r373333887
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PruneFileSourcePartitions.scala
##########
@@ -59,6 +60,21 @@ private[sql] object PruneFileSourcePartitions extends
Rule[LogicalPlan] {
Project(projects, withFilter)
}
+ private def getNewStatistics(
+ fileIndex: InMemoryFileIndex,
Review comment:
The file listing is parallel, and the statistic calculation is just getting
the sum of the files. So no need to make the statistic calculation parallel.
I updated my comments minutes after I left them.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]