Skip to content

MINOR: [Java] Make StructVector.reallocValidityBuffer protected#142

Merged
selvaganesang merged 1 commit into
dremio:dremio_26.1_18.1.0from
selvaganesang:struct_vector_26_1.9
Jun 16, 2026
Merged

MINOR: [Java] Make StructVector.reallocValidityBuffer protected#142
selvaganesang merged 1 commit into
dremio:dremio_26.1_18.1.0from
selvaganesang:struct_vector_26_1.9

Conversation

@selvaganesang

Copy link
Copy Markdown

Changes the access modifier of reallocValidityBuffer from package-private to protected.

This allows subclasses to reallocate the validity buffer independently of the struct elements. Previously, expanding the validity buffer required a full vector reallocation, which could cause an OversizedAllocationException if the child data vectors were already near their capacity.

Changes the access modifier of reallocValidityBuffer from package-private to protected.

This allows subclasses to reallocate the validity buffer independently of the struct elements. Previously,
expanding the validity buffer required a full vector reallocation, which could cause an OversizedAllocationException
if the child data vectors were already near their capacity.
@selvaganesang selvaganesang merged commit d2b1d27 into dremio:dremio_26.1_18.1.0 Jun 16, 2026
5 of 13 checks passed
@dmitry-chirkov-dremio

Copy link
Copy Markdown
Collaborator

@selvaganesang @lriggs do we have a PR for this in apache/arrow?

@lriggs

lriggs commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

@dmitry-chirkov-dremio @selvaganesang No, I didnt see anything and the fix is not upstream.

@lriggs

lriggs commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

apache/arrow-java#1195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants