Skip to content

Commit 9aed6c5

Browse files
committed
use protocol 2 in CloudPickle
1 parent 4bc1f04 commit 9aed6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def loads(self, obj):
362362
class CloudPickleSerializer(PickleSerializer):
363363

364364
def dumps(self, obj):
365-
return cloudpickle.dumps(obj)
365+
return cloudpickle.dumps(obj, 2)
366366

367367

368368
class MarshalSerializer(FramedSerializer):

0 commit comments

Comments
 (0)