[
https://issues.apache.org/jira/browse/ARROW-17040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laurent Querel updated ARROW-17040:
-----------------------------------
External issue URL: https://github.com/apache/arrow/pull/13574
> [Go] 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
> Priority: Minor
> Labels: pull-request-available
> Fix For: 9.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)