-
- Downloads
[SPARK-4882] Register PythonBroadcast with Kryo so that PySpark works with KryoSerializer
This PR fixes an issue where PySpark broadcast variables caused NullPointerExceptions if KryoSerializer was used. The fix is to register PythonBroadcast with Kryo so that it's deserialized with a KryoJavaSerializer. Author: Josh Rosen <joshrosen@databricks.com> Closes #3831 from JoshRosen/SPARK-4882 and squashes the following commits: 0466c7a [Josh Rosen] Register PythonBroadcast with Kryo. d5b409f [Josh Rosen] Enable registrationRequired, which would have caught this bug. 069d8a7 [Josh Rosen] Add failing test for SPARK-4882
Showing
- core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala 2 additions, 0 deletions...in/scala/org/apache/spark/serializer/KryoSerializer.scala
- core/src/test/scala/org/apache/spark/api/python/PythonBroadcastSuite.scala 60 additions, 0 deletions...la/org/apache/spark/api/python/PythonBroadcastSuite.scala
Please register or sign in to comment