forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-38717: [C++] Add ImportChunkedArray and ExportChunkedArray t…
…o/from ArrowArrayStream (apache#39455) ### Rationale for this change The `ChunkedArray` has no equivalent in the C data interface; however, it is the primary array structure that higher level bindings interact with (because it is a column in a `Table`). In the Python capsule interface, this means that ChunkedArrays always require a workaround involving loops in Python. ### What changes are included in this PR? - Added `ImportChunkedArray()` and `ExportChunkedArray()` - Generalized the classes that support import/export to relax the assumption that every `ArrowArray` in an `ArrowArrayStream` is a `RecordBatch`. ### Are these changes tested? TODO ### Are there any user-facing changes? Yes, two new functions are added to bridge.h. * Closes: apache#38717 Lead-authored-by: Dewey Dunnington <[email protected]> Co-authored-by: Dewey Dunnington <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Dewey Dunnington <[email protected]>
- Loading branch information
1 parent
2b03da9
commit 9b82c18
Showing
3 changed files
with
328 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.