lesterfan opened a new issue, #47301: URL: https://github.com/apache/arrow/issues/47301
### Describe the bug, including details regarding any error messages, version, and platform. The following code currently seg faults on the main branch, where we create a fragment from a file-like object, which [is a supported operation](https://github.com/apache/arrow/blob/80addfab90b65c9127b46cc5c0ff48af4db1afb3/python/pyarrow/_dataset.pyx#L1364). ``` table = pa.table([ pa.array(['a', 'b', 'c']), pa.array([12, 11, 10]), pa.array(['dog', 'cat', 'rabbit']) ], names=['alpha', 'num', 'animal']) out = pa.BufferOutputStream() pq.write_table(table, out) buffer = out.getvalue() file_like = pa.BufferReader(buffer) parquet_format = ds.ParquetFileFormat() fragment = parquet_format.make_fragment(file_like) opened_file = fragment.open() ``` Note that other APIs such as `fragment.to_batches` do work as expected. ### 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org