You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2020/09/22 18:39:00 UTC

[jira] [Updated] (ARROW-5327) [C++] allow construction of ArrayBuilders from existing arrays

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

Ben Kietzman updated ARROW-5327:
--------------------------------
    Fix Version/s:     (was: 2.0.0)
                   3.0.0

> [C++] allow construction of ArrayBuilders from existing arrays
> --------------------------------------------------------------
>
>                 Key: ARROW-5327
>                 URL: https://issues.apache.org/jira/browse/ARROW-5327
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Ben Kietzman
>            Assignee: Ben Kietzman
>            Priority: Major
>             Fix For: 3.0.0
>
>
> After calling Finish it may become necessary to append further elements to an array, which we don't currently support. One way to support this would be consuming the array to produce a builder with the array's elements pre-inserted.
> {code}
> std::shared_ptr<Array> array = get_array();
> std::unique_ptr<ArrayBuilder> builder;
> RETURN_NOT_OK(MakeBuilder(std::move(*array), &builder));
> {code}
> This will be efficient if we cannibalize the array's buffers and child data when constructing the builder, which will require that the consumed array is uniquely owned.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)