alamb commented on code in PR #7843:
URL: https://github.com/apache/arrow-rs/pull/7843#discussion_r2178525192


##########
parquet-variant/src/builder.rs:
##########
@@ -752,10 +784,20 @@ impl<'a, 'b> ObjectBuilder<'a, 'b> {
 
         self.parent_buffer.append_slice(self.buffer.inner());
 
+        self.finished = true;
+
         Ok(())
     }
 }
 
+impl Drop for ObjectBuilder<'_, '_> {
+    fn drop(&mut self) {
+        if !self.finished {
+            self._finish().expect("Failed to finalize ObjectBuilder");

Review Comment:
   Yes, sorry -- this is what lead me down the path of adding the additional 
documentation about the panic behavior. I should have updated this comment



-- 
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]

Reply via email to