mapleFU commented on issue #46555: URL: https://github.com/apache/arrow/issues/46555#issuecomment-2905035400
Yeah: 1. for array and object, size is unknown before `finishObject` 2. For element in array and object, an "arena" like object is likely used I found the parquet-java uses nested impl [1], and velocypack uses internal arena stack [2]. [1] is more easy to implement, [2] is more efficient for me [1] https://github.com/apache/parquet-java/blob/1f1e07bbf750fba228851c2d63470c3da5726831/parquet-variant/src/main/java/org/apache/parquet/variant/VariantBuilder.java#L437 [2] https://github.com/arangodb/velocypack/blob/8f0fc652e7641046a9f12b7d8a9917dcc507a5c2/include/velocypack/Builder.h#L98-L99 -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org