Skip to content

Conversation

@wesm
Copy link
Member

@wesm wesm commented Jul 3, 2020

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
Copy link
Member Author

wesm commented Jul 3, 2020

cc @brills

@github-actions
Copy link

github-actions bot commented Jul 3, 2020

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

wesm commented Jul 5, 2020

CI is OK now, this just needs to be reviewed

@wesm
Copy link
Member Author

wesm commented Jul 6, 2020

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
Copy link
Contributor

brills commented Jul 8, 2020

@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