Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SPARK-22144][SQL] ExchangeCoordinator combine the partitions of an 0…
… sized pre-shuffle to 0
  • Loading branch information
liutang123 committed Oct 14, 2017
commit f0de287a503ed89f27678a25001e7f9514ef3888
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,16 @@ class ExchangeCoordinator(
// number of post-shuffle partitions.
val partitionStartIndices =
if (mapOutputStatistics.length == 0) {
None
Array.empty[Int]
} else {
Some(estimatePartitionStartIndices(mapOutputStatistics))
estimatePartitionStartIndices(mapOutputStatistics)
}

var k = 0
while (k < numExchanges) {
val exchange = exchanges(k)
val rdd =
exchange.preparePostShuffleRDD(shuffleDependencies(k), partitionStartIndices)
exchange.preparePostShuffleRDD(shuffleDependencies(k), Some(partitionStartIndices))
newPostShuffleRDDs.put(exchange, rdd)

k += 1
Expand Down