-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Go] Add ValueLen
function to string array
#37584
Comments
seems reasonable to me, looking forward to the PR, thanks! |
Here it is: #37586 |
zeroshade
pushed a commit
that referenced
this issue
Sep 6, 2023
### Rationale for this change The binary array already has this function, and it's a useful mechanism when all one needs is the length of a value and not the value itself (for pre-allocation of a new buffer for example). ### What changes are included in this PR? Add function to return only the length of the string at index position `i`. ### Are these changes tested? Yes tested by including this in https://parca.dev/ ### Are there any user-facing changes? This is a new API mirroring the same API that already exists on the binary array. * Closes: #37584 Authored-by: Frederic Branczyk <fbranczyk@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this issue
Nov 13, 2023
…7586) ### Rationale for this change The binary array already has this function, and it's a useful mechanism when all one needs is the length of a value and not the value itself (for pre-allocation of a new buffer for example). ### What changes are included in this PR? Add function to return only the length of the string at index position `i`. ### Are these changes tested? Yes tested by including this in https://parca.dev/ ### Are there any user-facing changes? This is a new API mirroring the same API that already exists on the binary array. * Closes: apache#37584 Authored-by: Frederic Branczyk <fbranczyk@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…7586) ### Rationale for this change The binary array already has this function, and it's a useful mechanism when all one needs is the length of a value and not the value itself (for pre-allocation of a new buffer for example). ### What changes are included in this PR? Add function to return only the length of the string at index position `i`. ### Are these changes tested? Yes tested by including this in https://parca.dev/ ### Are there any user-facing changes? This is a new API mirroring the same API that already exists on the binary array. * Closes: apache#37584 Authored-by: Frederic Branczyk <fbranczyk@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement requested
The binary array already has this function, and it's a useful mechanism when all one needs is the length of a value and not the value itself (for pre-allocation of a new buffer for example).
Happy to do the PR for it.
Component(s)
Go
The text was updated successfully, but these errors were encountered: