You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/03/05 01:23:07 UTC

[GitHub] [spark] dongjoon-hyun commented on a change in pull request #35737: [SPARK-38418][PYSPARK] Add PySpark `cleanShuffleDependencies` developer API

dongjoon-hyun commented on a change in pull request #35737:
URL: https://github.com/apache/spark/pull/35737#discussion_r820009742



##########
File path: python/pyspark/rdd.py
##########
@@ -465,6 +465,21 @@ def getCheckpointFile(self) -> Optional[str]:
 
         return checkpointFile.get() if checkpointFile.isDefined() else None
 
+    def cleanShuffleDependencies(self, blocking: bool = False) -> None:
+        """
+        Removes an RDD's shuffles and it's non-persisted ancestors.
+
+        When running without a shuffle service, cleaning up shuffle files enables downscaling.
+        If you use the RDD after this call, you should checkpoint and materialize it first.
+
+        .. versionadded:: 3.3.0
+
+        Notes

Review comment:
       Oh, thank you. I'll take a look at them.




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org