Skip to content

Conversation

@AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Nov 11, 2025

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.

],
can_contain_null_mask: true,
variadic: true,
variadic: false,
Copy link
Contributor Author

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.
Copy link
Contributor Author

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.

@AdamGS AdamGS changed the title Adamg/ffi list view Add support for using FFI arrays and types through FFI Nov 11, 2025
@github-actions github-actions bot added the arrow Changes to the arrow crate label Nov 11, 2025
@AdamGS AdamGS force-pushed the adamg/ffi-list-view branch from 247eca5 to 7375a94 Compare November 11, 2025 16:42

_unsupported_pyarrow_types = [
]
if PYARROW_MAJOR_VER >= 16:
Copy link
Contributor Author

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.

@AdamGS AdamGS changed the title Add support for using FFI arrays and types through FFI Add support for using ListView arrays and types through FFI Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FFI support for ListView

1 participant