Skip to content

[Serialization] Support OrderedDict properly #17636

@asfimport

Description

@asfimport

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

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

which will return "dict". See also ray-project/ray#1034.

Reporter: Philipp Moritz / @pcmoritz
Assignee: Philipp Moritz / @pcmoritz

PRs and other links:

Note: This issue was originally created as ARROW-1625. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions