-
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
[C++] ListArray's Flatten function should support recursive flattening of nested lists #41055
Comments
Right. But we can't change the behavior of existing It would have to be a single implementation that dispatches based on the |
And we shouldn't forget |
…es (#41092) ### Rationale for this change Support flatten for combining nested list related types. ### What changes are included in this PR? Add the recursively flatten function for auto detect and flatten the combining nested list types. ### Are these changes tested? Yes ### Are there any user-facing changes? Yes, user can flatten a combining nested-list or related array by use `Flatten` API. * GitHub Issue: #41055 Authored-by: ZhangHuiGui <[email protected]> Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
Issue resolved by pull request 41092 |
…ed types (apache#41092) ### Rationale for this change Support flatten for combining nested list related types. ### What changes are included in this PR? Add the recursively flatten function for auto detect and flatten the combining nested list types. ### Are these changes tested? Yes ### Are there any user-facing changes? Yes, user can flatten a combining nested-list or related array by use `Flatten` API. * GitHub Issue: apache#41055 Authored-by: ZhangHuiGui <[email protected]> Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
…ed types (apache#41092) ### Rationale for this change Support flatten for combining nested list related types. ### What changes are included in this PR? Add the recursively flatten function for auto detect and flatten the combining nested list types. ### Are these changes tested? Yes ### Are there any user-facing changes? Yes, user can flatten a combining nested-list or related array by use `Flatten` API. * GitHub Issue: apache#41055 Authored-by: ZhangHuiGui <[email protected]> Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
Describe the enhancement requested
The function
FlattenListArray
seems only support flat the list array likelist(int32)
,arrow/cpp/src/arrow/array/array_nested.cc
Lines 240 to 254 in 6aa3321
Users need to flatten nested list-arrays( list(list(int32)) ), and then the upper layer needs to implement recursive flatten, which seems inconvenient for them.
@felipecrv do you think we should implement this internally(and also for ListViewArray)?
Component(s)
C++
The text was updated successfully, but these errors were encountered: