-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
return new JsonNodeToCqlVectorCodec( | ||
vectorType, | ||
createJsonNodeConvertingCodec(vectorType.getSubtype(), codecFactory, false), | ||
TypeCodecs.FLOAT, |
There was a problem hiding this comment.
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 float
s here
There was a problem hiding this comment.
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.
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. |
Closing the PR as it has been superseded |
* 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]>
This patch is based on #475
It adds the implementation for JsonNodeToCqlVectorCodec.java, that allows users to deal with the new CqlVector data type