Chetansahney opened a new issue, #55780: URL: https://github.com/apache/arrow/issues/55780
### Describe the bug, including details regarding any error messages, version, and platform. Like #55761 for `replace_with_mask`, these calls crash the process instead of raising an error: ```python import pyarrow as pa import pyarrow.compute as pc pc.filter(pa.scalar(1), pa.array([True])) # crash pc.array_filter(pa.scalar(1), pa.array([True])) # crash pc.array_take(pa.array([1]), pa.scalar(0)) # crash ``` `pc.take(pa.array([1]), pa.scalar(0))` handles a scalar argument and raises `ArrowNotImplementedError: Unsupported types for take operation`, but `array_take` does not, and `filter` crashes with scalar values. When all arguments are scalars the vector executor promotes them to length-1 arrays, so those calls are fine. With a mix of scalars and arrays, the scalar argument is passed to the kernel as-is, and the kernel reads it as an array. Reproduced with pyarrow 26.0.1 on Windows 11 (exit code 0xC0000005, access violation). ### Component(s) C++, 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]
