You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2021/05/12 13:54:00 UTC

[jira] [Commented] (ARROW-12739) [C++] Function to combine Arrays row-wise into ListArray

    [ https://issues.apache.org/jira/browse/ARROW-12739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17343262#comment-17343262 ] 

Wes McKinney commented on ARROW-12739:
--------------------------------------

Since naming is hard, my suggested name for this function is "adjoin" or to be explicit "adjoin_as_list"

> [C++] Function to combine Arrays row-wise into ListArray
> --------------------------------------------------------
>
>                 Key: ARROW-12739
>                 URL: https://issues.apache.org/jira/browse/ARROW-12739
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ian Cook
>            Priority: Major
>
> Add a variadic function that would take 2+ Arrays and combine/transpose them rowwise into a ListArray. For example:
>  Input:
> {code:java}
> Array<string>        Array<string>
> [                    [
>   "foo",               "bar",
>   "push"               "pop"
> ]                    ]
>  {code}
> Output:
> {code:java}
> ListArray<list<item: string>>
> [
>   ["foo","bar"],
>   ["push","pop"]
> ]
> {code}
> This is similar to the StructArray constructor which takes a list of Arrays and names (but in this case it would only need to take a list of Arrays).



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