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

Francois Saint-Jacques resolved ARROW-5588.
-------------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0

Issue resolved by pull request 4781
[https://github.com/apache/arrow/pull/4781]

> [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
>             Fix For: 1.0.0
>
>          Time Spent: 3h 40m
>  Remaining Estimate: 0h
>
> 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.14#76016)

Reply via email to