Skip to content

GH-46515: [C++] Enable Multi Blocks in arrow::BinaryViewBuilder::AppendArraySlice #46655

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

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

Conversation

andishgar
Copy link
Contributor

@andishgar andishgar commented May 31, 2025

Rationale for this change

As noted here, arrow::BinaryViewBuilder::AppendArraySlice does not support cases where the total length of elements in the input array exceeds the maximum value of int32_t.

What changes are included in this PR?

This PR updatesarrow::BinaryViewBuilder::AppendArraySliceto correctly handle {StringView, BinaryView}Array inputs where the total length of non-inlined elements exceeds the maximum value of int32_t.

Are these changes tested?

Yes, the relevant unit tests were run and passed.

Are there any user-facing changes?

No.

@pitrou
Copy link
Member

pitrou commented Jun 5, 2025

This is better than the statu quo, but I think we should be able to do even better, since BinaryView allows us to reuse the data buffers without actually copying the data for each string.

What do you think @bkietz ?

@andishgar
Copy link
Contributor Author

@pitrou I think that's a great idea. Since there's no obligation for the data to be adjacent in BinaryView, let me reimplement it accordingly. I'll inform you once it's done.

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.

2 participants