cakeni opened a new pull request, #10636: URL: https://github.com/apache/arrow-rs/pull/10636
# Which issue does this PR close? - Closes #10618. # Rationale for this change `parquet-variant-compute` contains a local helper for assembling a `StructArray` from completed child arrays. The helper is generally useful Arrow functionality and should live in `arrow-array` instead of being duplicated in a Variant-specific crate. # What changes are included in this PR? - Add a public `StructArrayBuilder` for completed child arrays to `arrow-array`. - Support synthesized fields, caller-provided `FieldRef` values that retain metadata, and an optional top-level null buffer. - Replace the local `parquet-variant-compute` implementation with the shared builder. - Add API documentation, an example, and unit coverage. # Are these changes tested? Yes. - `cargo test -p arrow-array struct_array_builder` (16 tests passed) - `cargo test -p parquet-variant-compute` (347 unit tests and 13 doctests passed) # Are there any user-facing changes? Yes. `arrow-array` exposes a new builder API for assembling `StructArray` values from completed children. Existing APIs are unchanged. -- 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]
