Skip to content

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
Member

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 <weideng1@users.noreply.github.com>
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