Re: [Java] When to close ArrowStreamWriter?

2021-09-15 Thread Bryan Cutler
Hi Daniel, You need to call either ArrowStreamWriter.end() or ArrowStreamWriter.close() when done writing batches to ensure the end-of-stream identifier is written. end() will just write the end-of-stream, while close() will call end() and then close the writer resources like the write channel. O

[Java] When to close ArrowStreamWriter?

2021-09-10 Thread Daniel Hsu
Hi, I noticed that I have been able to use an ArrowStreamWriter to write data into a ByteArrayOutputStream and successfully read the data back out, without needing to call ArrowStreamWriter # end() after I have finished writing data to the stream. Is there any downside to not calling ArrowStre