-
Notifications
You must be signed in to change notification settings - Fork 1k
Add support for using ListView arrays and types through FFI #8822
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
base: main
Are you sure you want to change the base?
Conversation
| ], | ||
| can_contain_null_mask: true, | ||
| variadic: true, | ||
| variadic: false, |
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.
This is a bug, see the spec, list views aren't represented by a variable number of buffers.
|
|
||
| // returns the number of bits that buffer `i` (in the C data interface) is expected to have. | ||
| // This is set by the Arrow specification | ||
| /// returns the number of bits that buffer `i` (in the C data interface) is expected to have. |
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.
Just nicer when working with IDEs.
247eca5 to
7375a94
Compare
|
|
||
| _unsupported_pyarrow_types = [ | ||
| ] | ||
| if PYARROW_MAJOR_VER >= 16: |
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.
Did this to get everything green, but I think that it might be a good opportunity to only test with pyarrow 16 and above, which supports all relevant features here - stringview, bianryview and listview and the pycapsule API.
By the time this change (if accepted) will be released, pyarrow 15 will be almost two years old, which seems like enough time to drop dedicated testing for it. This will allow the CI to focus on more relevant releases that also include all the APIs arrow-rs supports.
Which issue does this PR close?
Rationale for this change
Adds support for using list view arrays through FFI
What changes are included in this PR?
Support for the ListView types and arrays
Are these changes tested?
I've added additional tests that verify round trips through FFI, and a pyarrow integration test.
Are there any user-facing changes?
Extended support for ListView, doesn't effect existing functionality.