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 2021/05/26 04:56:02 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #32667: [SPARK-35512][PYTHON] Fix OverflowError(cannot convert float infinity to integer) in partitionBy function

HyukjinKwon commented on a change in pull request #32667:
URL: https://github.com/apache/spark/pull/32667#discussion_r639400254



##########
File path: python/pyspark/rdd.py
##########
@@ -2067,7 +2067,7 @@ def add_shuffle_key(split, iterator):
                     avg = int(size / n) >> 20
                     # let 1M < avg < 10M
                     if avg < 1:
-                        batch *= 1.5

Review comment:
       I guess to increase the size of batch and to use more memory .. ?




-- 
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:
users@infra.apache.org



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