You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/07/02 23:52:00 UTC

[jira] [Updated] (ARROW-5588) [C++] Better support for building UnionArrays

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

ASF GitHub Bot updated ARROW-5588:
----------------------------------
    Labels: pull-request-available  (was: )

> [C++] Better support for building UnionArrays
> ---------------------------------------------
>
>                 Key: ARROW-5588
>                 URL: https://issues.apache.org/jira/browse/ARROW-5588
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Benjamin Kietzman
>            Priority: Minor
>              Labels: pull-request-available
>
> UnionBuilders (for both sparse and dense mode unions) are not currently supported by MakeBuilder or ArrayFromJSON. This increases friction when working with and testing against union arrays, and support should be added to both. For ArrayFromJSON each entry must be specified with a (type code, value) pair:
> {code}
> ArrayFromJSON(union_({field("lint", list(int32())), field("str", utf8())}), R"([
>   [0, null],
>   [1, "hello"],
>   [0, [1, 2]],
>   [1, "world"]
> ])");
> {code}
> DenseUnionBuilder currently requires the user to explicitly input offsets, but if it were modified to hold pointers to child builders (as ListBuilder, for example) then those offsets could be derived from the lengths of child builders (which is much more user friendly).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)