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-3061 Re-introduce an improved CqlVector, add support for accessing vectors directly as float arrays #1666

Merged
merged 13 commits into from
Jul 8, 2023

Conversation

absurdfarce
Copy link
Contributor

Fixes in the same vein as #1643 adapted to play nicely with recent changes to the Java types representing CQL vectors.

@absurdfarce absurdfarce marked this pull request as draft June 28, 2023 06:54
@absurdfarce absurdfarce marked this pull request as ready for review June 28, 2023 20:32
@absurdfarce
Copy link
Contributor Author

Okay, this should largely be ready for validation from everybody involved. I still need an explicit test for CqlVector itself; that's next, but my main goal was to get the API in front of everyone so that we could get buy-off on the general idea.

As of the most recent round of commits this should build a usable artifact. @eolivelli I'm most interested in feedback from you confirming that this will address the use case you were addressing with the change in #1643. There should be equivalent changes to what you had there in this PR but I'd like explicit confirmation from you before we proceed with this thing.

Copy link
Contributor

@hhughes hhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few nit-pick comments, lgtm

Copy link

@jshook jshook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks easy to use and efficient!

Copy link

@jeffbanks jeffbanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. From perspective of flexibility for usage, I like the operations provided by CqlVector.

Copy link
Contributor

@hhughes hhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@absurdfarce
Copy link
Contributor Author

Excellent, thanks @hhughes!

Given all of the feedback above and the various conversations in various other venues I'm going to call this good and merge this change now. There are several downstream efforts which depend on a released driver that includes these changes and finalizing this and getting it merged is necessary to make that happen. A huge thanks to everybody who was involved in this process; thanks for making the Java driver's support for vectors even better!

@absurdfarce absurdfarce merged commit e2fb42d into 4.x Jul 8, 2023
3 checks passed
@absurdfarce absurdfarce deleted the caching-codec-fixes branch July 8, 2023 04:17
@absurdfarce absurdfarce changed the title Caching codec fixes JAVA-3061 Re-introduce an improved CqlVector, add support for accessing vectors directly as float arrays Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants