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

[C++][Python] replace_with_mask seg faults when passed ChunkedArray

    XMLWordPrintableJSON

Details

    Description

      It looks like most compute functions that take an array-like can accept a ChunkedArray as well. One exception to that appears to be replace_with_mask which seems to seg fault when the array-like is a chunked array. Here is an example:
       
       

      import pyarrow as pa 
      import pyarrow.compute as pc 
      
      ca = pa.chunked_array([[1, 2], [3, 4]]) 
      mask = [False, True, False, True] 
      
      # works (when we first combine chunks into a single array) 
      a_new = pc.replace_with_mask(ca.combine_chunks(), mask, 0) 
      
      # seg fault (if we try to pass the chunked array) 
      ca_new = pc.replace_with_mask(ca, mask, 0)

       

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lukemanley Luke Manley
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 20m
                  1h 20m