Skip to content

Commit c788061

Browse files
fix percentPruned log message
1 parent 2b820f2 commit c788061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/DataSourceStrategy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private[sql] object DataSourceStrategy extends Strategy with Logging {
6565
logInfo {
6666
val total = t.partitionSpec.partitions.length
6767
val selected = selectedPartitions.length
68-
val percentPruned = (1 - total.toDouble / selected.toDouble) * 100
68+
val percentPruned = (1 - selected.toDouble / total.toDouble) * 100
6969
s"Selected $selected partitions out of $total, pruned $percentPruned% partitions."
7070
}
7171

0 commit comments

Comments
 (0)