Skip to content

Exporting Binary/Utf8View from arrow-rs to pyarrow fails #6366

@robert3005

Description

@robert3005

Describe the bug
Exporting binaryview arrow to pyarrow fails with

Expected at least 3 buffers for imported type binary_view, ArrowArray struct has 2

To Reproduce
Construct binaryview array and export it over c data interface to pyarrow

Expected behavior
Export should succeed without error

Additional context
I think there's ambiguity in the spec apache/arrow#43989. However, regardless of that issue it seems that export binaryview array has to do a bit extra work to produce buffer lengths

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow cratebug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions