Description
I had issues finding good examples of how to use make_write_options and ended up calling it without having instantiated the ParquetFileFormat, which resulted in a segmentation fault:
>>> import pyarrow.dataset
>>> pyarrow.dataset.ParquetFileFormat.make_write_options(42)
[1] 64569 segmentation fault python
Expected behavior
Even though the way I called the method was nonsense, I'm guessing there could be better error handling than a segfault 🙂
Additional information
- The issue happens regardless of the parameters passed (as long as there is at least one)
- Tested on Python 3.11.6 and 3.8.14
- PyArrow version 14.0.2
- macOS 14.2 ARM
Component(s)
Python