viirya commented on a change in pull request #25328: [SPARK-28595][SQL] explain
should not trigger partition listing
URL: https://github.com/apache/spark/pull/25328#discussion_r310907987
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
##########
@@ -346,6 +348,12 @@ case class FileSourceScanExec(
} else {
None
}
+ } ++ {
+ if (relation.partitionSchemaOption.isDefined) {
+ Some("numPartitions" -> SQLMetrics.createMetric(sparkContext, "number of
partitions read"))
Review comment:
Although previously it is `PartitionCount`, `numPartitions` looks more
consistent.
----------------------------------------------------------------
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]