Skip to content

[C++] Function to combine Arrays row-wise into ListArray #28481

@asfimport

Description

@asfimport

Add a variadic function that would take 2+ Arrays and combine/transpose them rowwise into a ListArray. For example:
Input:

Array<string>        Array<string>
[                    [
  "foo",               "bar",
  "push"               "pop"
]                    ]
 

Output:

ListArray<list<item: string>>
[
  ["foo","bar"],
  ["push","pop"]
]

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

Reporter: Ian Cook / @ianmcook
Assignee: Jin Shang / @js8544

Note: This issue was originally created as ARROW-12739. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions