isvoboda opened a new issue, #34539: URL: https://github.com/apache/arrow/issues/34539
### Describe the bug, including details regarding any error messages, version, and platform. Writing parquet file crashes with segmentation fault with [`write_dataset`](https://arrow.apache.org/docs/python/generated/pyarrow.dataset.write_dataset.html) and setting `min_rows_per_file` and `max_rows_per_file`. It seems the crash depends on particular number for example setting `10_000` for both parameters works while `60_000` crashes. `pyarrow==11.0` See an example and dedicated docker environment ## segfault.py ```python import pyarrow as pa from pyarrow import dataset as ds from pyarrow import fs TOTAL = 2**20 schema = pa.schema( [ pa.field("id", pa.uint64()), ] ) data = (pa.RecordBatch.from_pylist([{"id": i}], schema=schema) for i in range(TOTAL)) file_system, path = fs.FileSystem.from_uri("file:///tmp/data") ds.write_dataset( data=data, base_dir=path, format="parquet", schema=schema, filesystem=file_system, min_rows_per_group=60_000, max_rows_per_group=60_000, ) ``` ## Dockerfile ```shell FROM python:3.10.10-slim-buster RUN pip install pyarrow==11.0 COPY segfault.py /tmp/segfault.py ``` ## Run the example - `docker build . -t pyarrow-segfault` - `docker run --rm -it pyarrow-segfault bash` - `python /tmp/segfault.py` ### 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]
