apache / arrow-rs

Official Rust implementation of Apache Arrow
https://arrow.apache.org/
Apache License 2.0
2.44k stars 716 forks source link

Builder interface for arrow_ipc::FileWriter #5236

Open devinjdangelo opened 8 months ago

devinjdangelo commented 8 months ago

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

While looking into https://github.com/apache/arrow-datafusion/issues/8635, I noticed that arrow_ipc::FileWriter does not appear to have a builder interface for configuring write related options. It would be convenient to have a similar interface to parquet WriterProperties::builder() or csv WriterBuilder that enables mutating specific options.

Describe the solution you'd like arrow_ipc::FileWriterBuilder that enables configuring options with a similar interface for other writers in arrow-rs

Describe alternatives you've considered The existing interface does enable setting options via IpcWriteOptions::try_new and IpcWriteOptions::try_with_compression, so this is more for convenience / consistency than adding new functionality.

Additional context

tustvold commented 8 months ago

https://github.com/apache/arrow-rs/pull/5136 is possibly related