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

GH-43135: [R] Change the binary type mapping to blob::blob #45595

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eitsupi
Copy link
Contributor

@eitsupi eitsupi commented Feb 20, 2025

Rationale for this change

Many packages, including nanoarrow, use the blob class provided by the blob package to represent a vector of binary data.
However, this package did not use blob.
Therefore, when this package convert Arrow Binary type to R, it was difficult for other packages to interpret it as a Binary type.

What changes are included in this PR?

The current special processing for the arrow_binary class should also be performed for the blob class.
Also, arrow_binary, arrow_large_binary, and arrow_fixed_size_binary will be changed to subclasses of the blob class.

Are these changes tested?

Rewrote some existing tests to use blob instead of arrow_binary.

Are there any user-facing changes?

Yes.

But the traditional classes have been changed to subclasses of blob, so little impact is expected.

Copy link

⚠️ GitHub issue #43135 has been automatically assigned in GitHub to PR creator.

@eitsupi eitsupi marked this pull request as ready for review February 20, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant