Laurent Querel created ARROW-17040:
--------------------------------------
Summary: Add a new StructBuilder constructor to support some
specific use cases
Key: ARROW-17040
URL: https://issues.apache.org/jira/browse/ARROW-17040
Project: Apache Arrow
Issue Type: Improvement
Components: Go
Affects Versions: 8.0.0
Reporter: Laurent Querel
Fix For: 9.0.0
Currently, the `NewStructBuilder` constructor takes a struct data type and
creates the constructor hierarchy itself. While interesting in most cases, this
approach is not easy to integrate with some libraries.
This PR introduces a new constructor `UnsafeNewStructBuilderFromFields`.
`UnsafeNewStructBuilderFromFields` returns a builder, using the provided memory
allocator, the corresponding initialized fields and constructors. This method
is unsafe because the caller must ensure that the fields and constructors are
compatible and that the builders have the same length.
Use case: Can be used by libraries that implement their own Arrow builders tree
and ensure the validation of fields and builders by themselves.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)