Skip to content
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

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

Closed
robert3005 opened this issue Sep 6, 2024 · 1 comment · Fixed by #6368
Closed

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

robert3005 opened this issue Sep 6, 2024 · 1 comment · Fixed by #6368
Labels
arrow Changes to the arrow crate bug

Comments

@robert3005
Copy link

robert3005 commented Sep 6, 2024

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

@robert3005 robert3005 added the bug label Sep 6, 2024
@robert3005 robert3005 changed the title Exporting Binary/Utf8View from arrow-rs to pyarrow fails if the array contains only short (<13 chars) strings Exporting Binary/Utf8View from arrow-rs to pyarrow fails Sep 6, 2024
@robert3005 robert3005 reopened this Sep 6, 2024
a10y added a commit to a10y/arrow-rs that referenced this issue Sep 6, 2024
@alamb alamb closed this as completed in 60ec869 Sep 12, 2024
@alamb alamb added the arrow Changes to the arrow crate label Oct 2, 2024
@alamb
Copy link
Contributor

alamb commented Oct 2, 2024

label_issue.py automatically added labels {'arrow'} from #6368

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 bug
Projects
None yet
2 participants