GitHub user davies opened a pull request:
https://github.com/apache/spark/pull/3668
[SPARK-2951] [PySpark] support unpickle array.array for Python 2.6 (port to
1.0)
Pyrolite can not unpickle array.array which pickled by Python 2.6, this
patch fix it by extend Pyrolite.
There is a bug in Pyrolite when unpickle array of float/double, this patch
workaround it by reverse the endianness for float/double. This workaround
should be removed after Pyrolite have a new release to fix this issue.
I had send an PR to Pyrolite to fix it:
https://github.com/irmen/Pyrolite/pull/11
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davies/spark port_2365
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3668.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3668
----
commit 7c55cff04b7d7d0b37650f1c5572cf54e531b7e6
Author: Davies Liu <[email protected]>
Date: 2014-09-16T01:57:25Z
[SPARK-2951] [PySpark] support unpickle array.array for Python 2.6
Pyrolite can not unpickle array.array which pickled by Python 2.6, this
patch fix it by extend Pyrolite.
There is a bug in Pyrolite when unpickle array of float/double, this patch
workaround it by reverse the endianness for float/double. This workaround
should be removed after Pyrolite have a new release to fix this issue.
I had send an PR to Pyrolite to fix it:
https://github.com/irmen/Pyrolite/pull/11
Author: Davies Liu <[email protected]>
Closes #2365 from davies/pickle and squashes the following commits:
f44f771 [Davies Liu] enable tests about array
3908f5c [Davies Liu] Merge branch 'master' into pickle
c77c87b [Davies Liu] cleanup debugging code
60e4e2f [Davies Liu] support unpickle array.array for Python 2.6
Conflicts:
core/src/main/scala/org/apache/spark/api/python/SerDeUtil.scala
python/pyspark/tests.py
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]