API for more ergonomic construction of RecordBatchOptions
#2728
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When creating a
RecordBatchOption
s object it would be nice to use a standard Rust patterns of eitherA builder interface :
Or
Default::default()
forpub
structs:However, there is no builder interface provided and
RecordBatchOptions
is marked as non-exhaustive so you get this errorThis means you have to use
mut
like:Describe the solution you'd like
Add a builder interface for RecordBatchOptions
Additional context
See comments from @isidentical apache/datafusion#3439 (comment)
The text was updated successfully, but these errors were encountered: