krojew / cdrs-tokio

High-level async Cassandra client written in 100% Rust.
Apache License 2.0
131 stars 24 forks source link

Support CQL Vector type added in Cassandra 5 #182

Open pkolaczk opened 2 weeks ago

pkolaczk commented 2 weeks ago

Here is the docs:

https://cassandra.apache.org/doc/latest/cassandra/reference/vector-data-type.html

5.25 vector For a vector of n dimensions of a fixed-length type, a sequence of those n elements. For a vector with variable-length elements, the size of the elements will preced each element. Each element is the [bytes] representing the serialized value. The number of dimensions is not encoded, since it's part of the type definition.

krojew commented 2 weeks ago

There's already a PR present: https://github.com/krojew/cdrs-tokio/pull/179 but changes were requested.