cloud-fan commented on a change in pull request #29637:
URL: https://github.com/apache/spark/pull/29637#discussion_r482878426
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
##########
@@ -439,6 +435,9 @@ case class FileSourceScanExec(
driverMetrics("staticFilesNum") = filesNum
driverMetrics("staticFilesSize") = filesSize
}
+ if (relation.partitionSchemaOption.isDefined) {
Review comment:
This change is not needed, but I keep it here for: 1. avoid duplicated
code. 2. make it super safe that we only update the `numPartitions` if table is
partitioned.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]