[Python] pyarrow.compute.and_ produces incorrect result
Open
Component: Python
Type: bug
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
```python
import pyarrow as pa
import pyarrow.compute as pc
true_true = pa.array([True, True])
false_true = pa.chunked_array([
[False],
pa.array([True, True]).slice(1),
])
pc.and_(true_true, false_true)
```
produces
```
[
[
true,
true
]
]
```
which is not correct. The output should be
```
[
[
false,
true
]
]
```
I am using version 19.0.0
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.