You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Laurent Querel (Jira)" <ji...@apache.org> on 2022/07/11 15:23:00 UTC

[jira] [Updated] (ARROW-17040) [Go] Add a new StructBuilder constructor to support some specific use cases

     [ https://issues.apache.org/jira/browse/ARROW-17040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurent Querel updated ARROW-17040:
-----------------------------------
    Summary: [Go] Add a new StructBuilder constructor to support some specific use cases   (was: Add a new StructBuilder constructor to support some specific use cases )

> [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
>
>
> 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)