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

[Python] pyarrow.concat_arrays segfaults when passing it a chunked array

    XMLWordPrintableJSON

Details

    Description

      One can concat the chunks of a ChunkedArray with concat_arrays passing it the list of chunks:

      In [1]: arr = pa.chunked_array([[0, 1], [3, 4]])
      
      In [2]: pa.concat_arrays(arr.chunks)
      Out[2]: 
      <pyarrow.lib.Int64Array object at 0x7ff88fc76408>
      [
        0,
        1,
        3,
        4
      ]
      

      but if passing the chunked array itself, you get a segfault:

      In [4]: pa.concat_arrays(arr)
      Segmentation fault (core dumped)
      

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jorisvandenbossche Joris Van den Bossche
              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 - 0.5h
                  0.5h