Skip to content

ARROW-6775: [C++][Python] Implement list_value_lengths and list_parent_indices functions - #7632

Closed
wesm wants to merge 5 commits into
apache:masterfrom
wesm:some-list-functions
Closed

ARROW-6775: [C++][Python] Implement list_value_lengths and list_parent_indices functions#7632
wesm wants to merge 5 commits into
apache:masterfrom
wesm:some-list-functions

Conversation

@wesm

@wesm wesm commented Jul 3, 2020

Copy link
Copy Markdown
Member

This adds two functions that operate on list types:

  • list_value_lengths: returns an int32 (for List) or int64 (for LargeList) array with the number of elements in each list value slot
  • list_parent_indices: returns an int32/int64 array with the same length as the child values array of a List type where each value is the index of the list "slot" containing each child value

@wesm

wesm commented Jul 3, 2020

Copy link
Copy Markdown
Member Author

cc @brills

@github-actions

github-actions Bot commented Jul 3, 2020

Copy link
Copy Markdown

@wesm
wesm force-pushed the some-list-functions branch from 984e35c to d5795a5 Compare July 5, 2020 00:54
@wesm

wesm commented Jul 5, 2020

Copy link
Copy Markdown
Member Author

CI is OK now, this just needs to be reviewed

@wesm

wesm commented Jul 6, 2020

Copy link
Copy Markdown
Member Author

Any opinions about these new APIs? @xhochy or @pitrou could you take a quick look?

@pitrou
pitrou force-pushed the some-list-functions branch from d5795a5 to aacb398 Compare July 7, 2020 09:27
@pitrou pitrou closed this in e1c3334 Jul 7, 2020
@brills

brills commented Jul 8, 2020

Copy link
Copy Markdown
Contributor

@wesm: Thanks! These will replace our own implementations.

@wesm
wesm deleted the some-list-functions branch July 8, 2020 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants