alexeykudinkin opened a new issue, #47493:
URL: https://github.com/apache/arrow/issues/47493
### Describe the bug, including details regarding any error messages,
version, and platform.
We've recently discovered a following bug in the Arrow's Parquet reader:
- When both filter and projection are projection is applied first, then
filtering returning incorrect results
```
import pyarrow as pa
from pyarrow import compute as pac
from pyarrow import parquet as pq
path = '/tmp/test.parquet'
t = pa.table({'ints': pa.array(list(range(100)))})
pq.write_table(t, path)
ds = pq.ParquetDataset(path)
bs = ds.fragments[0].to_batches(
columns=[],
filter=pac.field('ints') == 42
)
assert len(list(bs)) == 1
```
### Component(s)
C++, Parquet
--
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]