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-1770: Revert accidental(?) fix
Looks like this change was accidentally committed here:
06b15ba

but the change does not show up in the PR itself (#704).

Other than not intending to go in with that PR, this also broke the test
JavaApiSuite.repartition.
  • Loading branch information
aarondav committed May 9, 2014
commit b1cf70b1aa3745b6a44c6407af904047caf8a5d0
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/rdd/RDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ abstract class RDD[T: ClassTag](
if (shuffle) {
// include a shuffle step so that our upstream tasks are still distributed
new CoalescedRDD(
new ShuffledRDD[Int, T, (Int, T)](map(x => (Utils.random.nextInt(), x)),
new ShuffledRDD[T, Null, (T, Null)](map(x => (x, null)),
new HashPartitioner(numPartitions)),
numPartitions).values
numPartitions).keys
} else {
new CoalescedRDD(this, numPartitions)
}
Expand Down