AlenkaF opened a new issue, #55761:
URL: https://github.com/apache/arrow/issues/55761
### Describe the bug, including details regarding any error messages,
version, and platform.
```python
>>> pc.replace_with_mask(pa.scalar(1), pa.array([True]), pa.array([2]))
[1] 12012 segmentation fault python
```
This code should error, not crash.
Note: with all three arguments as scalars it works:
```python
>>> pc.replace_with_mask(pa.scalar(1), True, 2)
# Or pc.replace_with_mask(pa.scalar(1), pa.scalar(True), pa.scalar(2))
<pyarrow.lib.Int64Array object at 0x10f1a7340>
[
2
]
```
Found while working on the compute stubs (#49201). Once fixed, the stubs
need re-check/update.
### 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]