Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1625

[Serialization] Support OrderedDict properly

    XMLWordPrintableJSON

Details

    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

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

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

      Attachments

        Issue Links

          Activity

            People

              pcmoritz Philipp Moritz
              pcmoritz Philipp Moritz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: