-
Notifications
You must be signed in to change notification settings - Fork 180
[MRG][BRANCH-0.4.x] Regression on pickling classes from the __main__ module #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Seems the test failure is by #151. |
|
||
cloned = subprocess_pickle_echo(f4) | ||
assert cloned(2) == f4(2) | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed protocol comparing to the original
@@ -28,9 +29,13 @@ def subprocess_pickle_echo(input_data): | |||
|
|||
""" | |||
pickled_input_data = dumps(input_data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Since I merged the other, I think you can rebase this branch now. |
This reverts commit d9e02fb.
e0fa85b
to
3cfc303
Compare
Codecov Report
@@ Coverage Diff @@
## 0.4.x #149 +/- ##
=========================================
- Coverage 83.9% 83.58% -0.32%
=========================================
Files 1 1
Lines 528 530 +2
Branches 96 97 +1
=========================================
Hits 443 443
- Misses 63 64 +1
- Partials 22 23 +1
Continue to review full report at Codecov.
|
## What changes were proposed in this pull request? The version of cloudpickle in PySpark was close to version 0.4.0 with some additional backported fixes and some minor additions for Spark related things. This update removes Spark related changes and matches cloudpickle [v0.4.3](https://github.com/cloudpipe/cloudpickle/releases/tag/v0.4.3): Changes by updating to 0.4.3 include: * Fix pickling of named tuples cloudpipe/cloudpickle#113 * Built in type constructors for PyPy compatibility [here](cloudpipe/cloudpickle@d84980c) * Fix memoryview support cloudpipe/cloudpickle#122 * Improved compatibility with other cloudpickle versions cloudpipe/cloudpickle#128 * Several cleanups cloudpipe/cloudpickle#121 and [here](cloudpipe/cloudpickle@c91aaf1) * [MRG] Regression on pickling classes from the __main__ module cloudpipe/cloudpickle#149 * BUG: Handle instance methods of builtin types cloudpipe/cloudpickle#154 * Fix <span>#</span>129 : do not silence RuntimeError in dump() cloudpipe/cloudpickle#153 ## How was this patch tested? Existing pyspark.tests using python 2.7.14, 3.5.2, 3.6.3 Author: Bryan Cutler <[email protected]> Closes apache#20373 from BryanCutler/pyspark-update-cloudpickle-42-SPARK-23159.
This PR backports #132 to branch-0.4.x and fixes #131.