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

Add JSON Codec for Vector type #476

Closed
wants to merge 5 commits into from

Conversation

eolivelli
Copy link

This patch is based on #475

It adds the implementation for JsonNodeToCqlVectorCodec.java, that allows users to deal with the new CqlVector data type

return new JsonNodeToCqlVectorCodec(
vectorType,
createJsonNodeConvertingCodec(vectorType.getSubtype(), codecFactory, false),
TypeCodecs.FLOAT,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a concern for now, but OSS C* is [planning on] adding support for vectors with many different types and not just floats here

Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth noting: the rework of this functionality in the main PR for adding vector search to dsbulk does not make any assumptions as to the subtype of the input vector.

@absurdfarce
Copy link
Collaborator

This code has been reworked in the main PR adding vector support to dsbulk (see this commit). I would argue this PR should be closed in favor of that work.

@eolivelli
Copy link
Author

Closing the PR as it has been superseded

@eolivelli eolivelli closed this Jun 14, 2023
weideng1 added a commit that referenced this pull request Jun 22, 2023
* Java driver version upgrade (to get vector support)

* Initial impl of vector support for loading

* Formatting changes

* Add vector support to minimal internal CQL parser

* Adding support for JSON codecs.  This work is significantly inspired by work by @eolivelli
(#476)

* use newer maven version to workaround WAGON-545

---------

Co-authored-by: weideng1 <[email protected]>
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.

3 participants