Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
When trying to write an IPC dataset using pyarrow.dataset, it is not possible to pass a compression argument:
Trying to pass a pyarrow.ipc.IpcWriteOptions object:
>>> ds.write_dataset(f, "./thing.arrow", format=ds.IpcFileFormat(), file_options=ipc.IpcWriteOptions(compression='lz4'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/joost/.cache/pypoetry/virtualenvs/datalogistik-rL_l_suP-py3.8/lib/python3.8/site-packages/pyarrow/dataset.py", line 940, in write_dataset
if format != file_options.format:
AttributeError: 'pyarrow.lib.IpcWriteOptions' object has no attribute 'format'
Alternatively, pyarrow.dataset.IpcFileFormat().make_write_options() does not support a compression parameter