You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/09/24 08:50:00 UTC
[jira] [Updated] (ARROW-6698) [Python] Deserialize Python objects
using __slots__ in pyarrow.deserialize
[ https://issues.apache.org/jira/browse/ARROW-6698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-6698:
-----------------------------------------
Labels: pyarrow-serialization (was: )
> [Python] Deserialize Python objects using __slots__ in pyarrow.deserialize
> --------------------------------------------------------------------------
>
> Key: ARROW-6698
> URL: https://issues.apache.org/jira/browse/ARROW-6698
> Project: Apache Arrow
> Issue Type: New Feature
> Components: Python
> Reporter: John Yost
> Priority: Minor
> Labels: pyarrow-serialization
>
> Hi Everyone,
> First of all, well-done! This project is totally awesome.
> When I attempted to serialize a Python object that uses __slots__ to minimize memory requirements I received the following error:
> return pyarrow.deserialize(data, serialization_context)
> File "pyarrow/serialization.pxi", line 461, in pyarrow.lib.deserialize
> File "pyarrow/serialization.pxi", line 424, in pyarrow.lib.deserialize_from
> File "pyarrow/serialization.pxi", line 275, in pyarrow.lib.SerializedPyObject.deserialize
> File "pyarrow/serialization.pxi", line 194, in pyarrow.lib.SerializationContext._deserialize_callback
> AttributeError: 'RemoteExecutorObject' object has no attribute '__dict__'
> Would it be possible to support __slots__? If not, not a huge deal, but wanted to at least ask.
>
> Thanks, and thanks again for pyarrow!
>
> --John
--
This message was sent by Atlassian Jira
(v8.3.4#803005)