You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "abacef (via GitHub)" <gi...@apache.org> on 2025/07/04 05:24:28 UTC

Re: [I] [Variant] Make it harder to forget to finish a pending parent i n ObjectBuilder [arrow-rs]

abacef commented on issue #7798:
URL: https://github.com/apache/arrow-rs/issues/7798#issuecomment-3034578912

   I dont know how set in stone these builder APIs are but in order to prevent there being unfinished objects being appended to objects for example, we can make `new_object` return a builder but not actually set the offset, then they would call `finish` which just returns something like a FinalizedBuilder type, and only then would they be able to call a new method on an ObjectBuilder called like `add_object` which only takes a FinalizedBuilder and sets the offset and puts it in the parent buffer and does the finalization things. Is there something I may not be considering?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org