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

pyarrow.Array affects dict keys order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.0.0
    • None
    • Python
    • None

    Description

      When applying pyarrow.array() to a list of dict, the dict keys are reordered in ascending order.

      Because of this I cannot preserve the original parquet data schema when doing transformations from py to arrow.

      Is the key reordering the intended behaviour ?

      Is there an existing workaround ?

       

      Eg.

      x = [  \{'z': '', 'y': {'b': '', 'a': ''}} ]
      y = pyarrow.array( x )
      print( y )
      print(y.to_pylist())

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            alCag Alexandre Cagnon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: