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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.10.0
    • Python
    • 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

              apitrou Antoine Pitrou
              adaitche Anton Daitche
              Votes:
              0 Vote for this issue
              Watchers:
              4 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