Skip to content

GH-301: Allow adding a vector at the end of VectorSchemaRoot#1013

Open
axreldable wants to merge 1 commit intoapache:mainfrom
axreldable:add-vector-to-end
Open

GH-301: Allow adding a vector at the end of VectorSchemaRoot#1013
axreldable wants to merge 1 commit intoapache:mainfrom
axreldable:add-vector-to-end

Conversation

@axreldable
Copy link
Contributor

@axreldable axreldable commented Feb 8, 2026

What's Changed

Previously, the precondition index < fieldVectors.size() rejected index == fieldVectors.size(), so appending was impossible. The precondition is now index <= fieldVectors.size(), and when index == fieldVectors.size() the new vector is appended after all existing vectors.

The implementation of VectorSchemaRoot#addVector() is now aligned with BaseTable#insertVector()

The change is backward compatible, as it extends the functionality of the VectorSchemaRoot#addVector() method.

Closes #301.

@github-actions

This comment has been minimized.

@axreldable
Copy link
Contributor Author

I'd say it's an enhancement rather than a bug fix (#301 is labeled as a bug).

@lidavidm lidavidm added enhancement PRs that add or improve features. and removed breaking-change labels Feb 8, 2026
@github-actions github-actions bot added this to the 19.0.0 milestone Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that add or improve features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java] VectorSchemaRoot#addVector() cannot add a vector to the end of the current vector collection

2 participants