"marks the writer as done" but also CONSUMES THE WRITER BY VALUE!?
https://arrow.apache.org/rust/arrow_array/trait.RecordBatchWriter.html#tymethod.close
=> More informations about this toot | More toots from pkhuong@discuss.systems
@pkhuong it makes more sense if you look at an implementation, like FileWriter
, which has to do IO for a footer when you call close
. I'm not a Rust expert, but I think this is standard practice for handling errors that would otherwise cause Drop
to panic.
Although I sort of wish there was a variant that took Box<Self>
so you could make dynamic writer objects.
=> More informations about this toot | More toots from ryanmarcus@discuss.systems
@ryanmarcus The two implementations I looked at call a non-consuming finish() that would actually be object-safe.
=> More informations about this toot | More toots from pkhuong@discuss.systems
text/gemini
This content has been proxied by September (3851b).