-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-15643: [C++] Allow selecting subset of fields of a StructArray via cast #12724
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
ARROW-15643: [C++] Allow selecting subset of fields of a StructArray via cast #12724
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.
Currently, the output StructArray fields need to be in the same order as in the input StructArray and also have the same name.
lidavidm
left a comment
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, thanks. Do you want to mark this as ready now?
|
Would we have to address the other cases talked about in the JIRA in this PR itself, or will that involve follow-up PRs? |
|
I think we can file a separate JIRA to handle reordering fields via a cast. |
|
Benchmark runs are scheduled for baseline = bda7087 and contender = ac3be08. ac3be08 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
|
Are the follow-up JIRAs already created? |
|
Thanks for the reminder Joris, filed ARROW-16112. |
|
Thanks. Do we also still want to add a |
|
We can probably still add it, though yeah, not sure how useful it is. |
Provide the ability to select a subset of the fields of a StructArray array by casting it to the required fields, provided the fields exist in the StructArray.