Skip to content

Commit f458489

Browse files
committed
Remove unnecessary map() on return Iterator
1 parent 4abb855 commit f458489

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/scala/org/apache/spark/shuffle/hash/HashShuffleReader.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ private[spark] class HashShuffleReader[K, C](
8080
}
8181
} else {
8282
require(!dep.mapSideCombine, "Map-side combine without Aggregator specified!")
83-
84-
// Convert the Product2s to pairs since this is what downstream RDDs currently expect
85-
interruptibleIter.asInstanceOf[Iterator[Product2[K, C]]].map(pair => (pair._1, pair._2))
83+
interruptibleIter.asInstanceOf[Iterator[Product2[K, C]]]
8684
}
8785

8886
// Sort the output if there is a sort ordering defined.

0 commit comments

Comments
 (0)