AlenkaF opened a new issue, #49606: URL: https://github.com/apache/arrow/issues/49606
### Describe the enhancement requested Basic arithmetic on arrays and scalars has been added here: https://github.com/apache/arrow/pull/48085. There has been a comment by @jorisvandenbossche that I forgot to make sure it is addressed: > The & / | operators are currently mapped to the bitwise kernels, but in array-land, I think the most common use case for those is actually for logical (boolean) operations. So as a user, I would expect those to also work on bool type. Link: https://github.com/apache/arrow/pull/48085#issuecomment-3654526351 I think it is worth looking into it as a follow up. I propose to: - confirm that newly added `&` / `|` operators are not working on boolean arrays/scalars due to kernels only supporting integer types, - think about using logical kernels ([`pc.and_`](https://arrow.apache.org/docs/python/generated/pyarrow.compute.and_.html)/[`pc.or_`](https://arrow.apache.org/docs/python/generated/pyarrow.compute.or_.html)) if the input is bool. ### 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]
