Skip to content

Commit

Permalink
Preserve partitioner in retag().
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 30, 2014
1 parent af78816 commit 469d941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/org/apache/spark/rdd/RDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@ abstract class RDD[T: ClassTag](
override protected def getPartitions: Array[Partition] = oldRDD.getPartitions
override def compute(split: Partition, context: TaskContext): Iterator[T] =
oldRDD.compute(split, context)
@transient override val partitioner = oldRDD.partitioner
}
}

Expand Down

0 comments on commit 469d941

Please sign in to comment.