-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-42235: [C++] list_parent_indices: Add support for list-view types #42236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @felipecrv !
auto input = | ||
ArrayFromJSON(list_view(int16()), "[[0, null, 1], [0, 0], [2, 3], [], [4, 5]]"); | ||
auto tweaked = TweakValidityBit(input, 1, false); | ||
auto expected = ArrayFromJSON(int64(), "[0, 0, 0, null, null, 2, 2, 4, 4]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... the fact that this gives a different result than for regular lists should perhaps be called out in the official documentation for this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Tell me if it's clear enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but the Windows build failures need fixing (just a missing cast).
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 508bdaa. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 7 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…types (apache#42236) ### Rationale for this change Completing the support of list-views. ### What changes are included in this PR? Implementation of the `list_parent_indices` function for `ListViewType` and `LargeListViewType`. ### Are these changes tested? Yes, by new unit tests. ### Are there any user-facing changes? More complete support of list-views. * GitHub Issue: apache#42235 Lead-authored-by: Felipe Oliveira Carvalho <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
Rationale for this change
Completing the support of list-views.
What changes are included in this PR?
Implementation of the
list_parent_indices
function forListViewType
andLargeListViewType
.Are these changes tested?
Yes, by new unit tests.
Are there any user-facing changes?
More complete support of list-views.