Add example to convert PrimitiveArray to a Vec#8771
Merged
mbrobbel merged 3 commits intoapache:mainfrom Nov 4, 2025
Merged
Conversation
PrimitiveArray to a Vec
vegarsti
approved these changes
Nov 3, 2025
Contributor
vegarsti
left a comment
There was a problem hiding this comment.
This is great! Thank you!
mbrobbel
reviewed
Nov 3, 2025
vegarsti
reviewed
Nov 3, 2025
Co-authored-by: Vegard Stikbakke <vegard.stikbakke@gmail.com>
mbrobbel
approved these changes
Nov 4, 2025
Member
mbrobbel
pushed a commit
that referenced
this pull request
Nov 4, 2025
# Which issue does this PR close? - Similar to #8771 # Rationale for this change As people write more arrow kernels, let's make it easier to understand how to go back/forth to Vec without copying # What changes are included in this PR? Add some additional information and examples about converting ScalarBuffer back/forth to Vec # Are these changes tested? Yes by CI # Are there any user-facing changes? Docs only. No functional change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
It may not be obvious how to convert certain Arrow arrays to/from Vec without copying for manipulation, so let's add an example
What changes are included in this PR?
Are these changes tested?
By CI
Are there any user-facing changes?
Docs only, no functional change