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
Copy link

github-actions bot commented Feb 8, 2026

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@axreldable
Copy link
Contributor Author

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

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

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

1 participant