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

[Java] Implement a function to retrieve reference buffers in StringView #40930

Closed
vibhatha opened this issue Apr 2, 2024 · 1 comment
Closed

Comments

@vibhatha
Copy link
Collaborator

vibhatha commented Apr 2, 2024

Describe the enhancement requested

At the moment in the StringView implementation, public ArrowBuf[] getBuffers(boolean clear) function only returns the offset, validity and value buffers. But for recreating views entirely and support related features it would be better to introduce additional function or improve the existing function to return the view buffers.

Component(s)

Java

@vibhatha vibhatha changed the title [Java] Implement a function to retrieve reference buffers [Java] Implement a function to retrieve reference buffers in StringView Apr 2, 2024
@vibhatha vibhatha self-assigned this May 9, 2024
lidavidm pushed a commit that referenced this issue May 24, 2024
…n StringView (#41796)

### Rationale for this change

This PR includes a minor changes to the `getBuffers` method in `BaseVariableWidthViewVector`. 

### What changes are included in this PR?

Previously the fixed buffers were the only ones returned from this method because of lack of clarity in the initial implementation stage. In this PR, it includes the variadic buffers to the result. A test case has also being added. 

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* GitHub Issue: #40930

Authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
@lidavidm lidavidm added this to the 17.0.0 milestone May 24, 2024
@lidavidm
Copy link
Member

Issue resolved by pull request 41796
#41796

vibhatha added a commit to vibhatha/arrow that referenced this issue May 25, 2024
…fers in StringView (apache#41796)

### Rationale for this change

This PR includes a minor changes to the `getBuffers` method in `BaseVariableWidthViewVector`. 

### What changes are included in this PR?

Previously the fixed buffers were the only ones returned from this method because of lack of clarity in the initial implementation stage. In this PR, it includes the variadic buffers to the result. A test case has also being added. 

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* GitHub Issue: apache#40930

Authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants