-
Notifications
You must be signed in to change notification settings - Fork 58
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
LIN-712 use cloudpickle #857
Conversation
… (we might never need this though - if so we can also simplify this)
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.
No blocker but two comments.
I think your PR gets rid of pandas
dependency, so we probably want to remove it from requirements.txt and setup.py (maybe in other places I'm not aware).
I am also curious about scenarios that cloudpickle
doesn't work and need to fallback to vanilla pickle
. I thought cloudpickle
is still using pickle under the hood.
@@ -57,6 +57,7 @@ def version(path): | |||
"fsspec", | |||
"pandas", |
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 think we can get rid of pandas
dependency, right?
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 still use your older version of code which uses get_handle for different remote filepaths. so only for that i do need pandas right now. if we can refactor that piece too somehow then ya we should be able to get rid of this piece.
|
Description
Start using cloudpickle. In general, cloudpickle supports more use cases but specifically it works around the constraint of the pickle class that requires class objects to be registered in globals(). This will let linea keep hijacking the default globals and work with a separate copy in executor.
Fixes LIN-712
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
All existing tests.