b-phi opened a new issue, #43558:
URL: https://github.com/apache/arrow/issues/43558
### Describe the bug, including details regarding any error messages,
version, and platform.
This appears to be a regression between `pyarrow-15.0.2` and
`pyarrow-16.0.0`. This issue is still present in `pyarrow-17.0.0`.
The following occasionally throws segfaults when reading parquet files from
S3.
```python
import pyarrow.dataset as ds
from pyarrow.fs import S3FileSystem
ts = ds.field('timestamp')
dataset = ds.dataset(
source=['a', 'b', 'c'],
format=ds.ParquetFileFormat(),
filesystem=S3FileSystem(),
partitioning='hive',
)
dataset.to_table(filter=(ts > start_ts) & (ts <= end_ts))
```
However this consistently works even when the above segfaults
```python
import pyarrow.dataset as ds
import pyarrow.compute as pc
from pyarrow.fs import S3FileSystem
ts = pc.field('timestamp')
dataset = ds.dataset(
source=['a', 'b', 'c'],
format=ds.ParquetFileFormat(),
filesystem=S3FileSystem(),
partitioning='hive',
)
table = dataset.to_table()
table.filter((ts > start_ts) & (ts <= end_ts))
```
Few other miscellaneous details
* The timestamp field is a `pa.timestamp('ns')`
* `start_ts` and `end_ts` are pandas timestamps
* The base environment is the docker image `python:3.10-slim-bookworm`
### Component(s)
Parquet, 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]