inpefess commented on a change in pull request #20691: [SPARK-18161] [Python] 
Allow pickle to serialize >4 GB objects when possible (Python 3.4+)
URL: https://github.com/apache/spark/pull/20691#discussion_r247357219
 
 

 ##########
 File path: python/pyspark/broadcast.py
 ##########
 @@ -80,7 +81,7 @@ def __init__(self, sc=None, value=None, 
pickle_registry=None, path=None):
 
     def dump(self, value, f):
         try:
-            pickle.dump(value, f, 2)
+            pickle.dump(value, f, protocol)
 
 Review comment:
   Not sure that I understood you right since I've forgotten about this PR:( 
But I'll give a try again and probably make it pass the tests this time.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to