HyukjinKwon commented on a change in pull request #32667:
URL: https://github.com/apache/spark/pull/32667#discussion_r639407961
##########
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
+ batch = min(sys.maxsize, batch * 1.5)
Review comment:
should we use `sys.float_info.max` instead, @nolanliou? Hm, btw just
realised that it's funny that it can reach to the maximum of float ...
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]