You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/09/26 22:47:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16939017#comment-16939017 ] 

Wes McKinney commented on ARROW-6698:
-------------------------------------

I renamed the issue to be clear what it's about. I don't know off-hand how to address the issue but you can look at the implementation and submit a PR if you like

> [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
>            Reporter: John Yost
>            Priority: Minor
>
> 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)