XiaomoWu opened a new issue, #44851:
URL: https://github.com/apache/arrow/issues/44851

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I'm trying to provide compress options to `ds.write_dataset` but all the 
following attempts fail:
   
   ```python
   import pyarrow as pa
   import pyarrow.dataset as ds
   
   x = pa.table({"a": [1, 2, 3], "b": [4, 5, 6]})
   
   # Error: TypeError: make_write_options() needs an argument
   ds.write_dataset(
       x, format="ipc", base_dir="test",
       file_options=ds.IpcFileFormat.make_write_options(compression="lz4"))
   
   # Error: TypeError: make_write_options() needs an argument
   ds.write_dataset(
       x, format="feather", base_dir="test",
       file_options=ds.FeatherFileFormat.make_write_options(compression="lz4"))
   
   # Error: AttributeError: 'pyarrow.lib.IpcWriteOptions' object has no 
attribute 'format'
   ds.write_dataset(
       x, format="ipc", base_dir="test",
       file_options=pa.ipc.IpcWriteOptions(compression="lz4"))
   ```
   
   What's interesting is that this should already be fixed, as discussed in 
#33196.
   
   
   OS: Ubuntu 24.04
   pyarrow: 18.0.0
   
   ### 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

Reply via email to