gszadovszky commented on issue #3011:
URL: https://github.com/apache/parquet-java/issues/3011#issuecomment-2367540348

   @hellishfire, my bad, should have explained in more details. In many cases, 
Parquet writers are used in a try-with-resources construct. It invokes `close` 
in any case including exceptions thrown during the writes. `close` invokes 
flush by default which actually does some writing. It may cause issues like 
throwing exceptions while closing which is not always a problem. But, if you 
would use e.g. direct memory via the `ByteBufferAllocator` interface, it needs 
to be released and if fails, it may lead to memory leaks.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to