huaxingao commented on a change in pull request #26148:
[SPARK-29499][CORE][PYSPARK] Add mapPartitionsWithIndex for RDDBarrier
URL: https://github.com/apache/spark/pull/26148#discussion_r336540428
##########
File path: core/src/main/scala/org/apache/spark/rdd/RDDBarrier.scala
##########
@@ -54,5 +54,27 @@ class RDDBarrier[T: ClassTag] private[spark] (rdd: RDD[T]) {
)
}
+ /**
+ * :: Experimental ::
+ * Returns a new RDD by applying a function to each partition of the wrapped
RDD,
Review comment:
adding "while tracking the index of the original partition" to make it the
same as the doc in ```RDD.mapPartitionsWithIndex```?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]