lukemanley opened a new issue, #34634:
URL: https://github.com/apache/arrow/issues/34634

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Passing a boolean `ChunkedArray` to `pc.replace_with_mask` seems to produces 
an invalid result. Replacing the `ChunkedArray` with a regular `Array` seems to 
work fine. Other types seem to work fine with `ChunkedArray`. The invalid 
result appears that it may be specific to the boolean type. 
   
   ```
   import pyarrow as pa
   import pyarrow.compute as pc
   
   arr = pa.chunked_array([[True, True]])
   mask = pa.array([False, True])
   replacements = pa.array([False, False])
   
   pc.replace_with_mask(arr, mask, replacements)
   ```
   
   output:
   ```
   <pyarrow.lib.ChunkedArray object at 0x7fb57a7a6900>
   [
   <Invalid array: Buffer #1 too small in array of type bool and length 2: 
expected at least 1 byte(s), got 0>
   ]
   ```
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to