[ 
https://issues.apache.org/jira/browse/ARROW-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philipp Moritz updated ARROW-1625:
----------------------------------
    Description: 
At the moment what happens when we serialize an OrderedDict and then 
deserialize it, it will become a normal dict! This can be reproduced with

{code}
import pyarrow
import collections
d = collections.OrderedDict([("hello", 1), ("world", 2)])
type(pyarrow.serialize(d).deserialize())
{code}

which will return "dict". See also 
https://github.com/ray-project/ray/issues/1034.

  was:
At the moment what happens when we serialize an OrderedDict and then 
deserialize it, it will become a normal dict! This can be reproduced with

{code}
import pyarrow
import collections
d = collections.OrderedDict([("hello", 1), ("world", 2)])
type(pyarrow.serialize(d).deserialize))
{code}

which will return "dict". See also 
https://github.com/ray-project/ray/issues/1034.


> [Serialization] Support OrderedDict properly
> --------------------------------------------
>
>                 Key: ARROW-1625
>                 URL: https://issues.apache.org/jira/browse/ARROW-1625
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Philipp Moritz
>
> At the moment what happens when we serialize an OrderedDict and then 
> deserialize it, it will become a normal dict! This can be reproduced with
> {code}
> import pyarrow
> import collections
> d = collections.OrderedDict([("hello", 1), ("world", 2)])
> type(pyarrow.serialize(d).deserialize())
> {code}
> which will return "dict". See also 
> https://github.com/ray-project/ray/issues/1034.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to