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

[Python] Writing to parquet crashes when writing a ListArray of empty lists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: Python
    • Environment:
      Python Version: 3.6.3 (Anaconda)
      OS: OSX and Linux

      Description

      When writing a ListArray which contains only empty lists to Parquet, Pyarrow crashes. Here is a minimal code snippet which reproduces the crash:

      import pyarrow as pa
      from pyarrow import parquet as pq
      
      array = pa.array([[]], type=pa.list_(pa.int32()))
      table = pa.Table.from_arrays([array], ["A"])
      pq.write_table(table, "tmp.parq")

      When the ListArray has at least one non-empty list, the issue disappears.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                adaitche Anton Daitche
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m