absurdfarce commented on code in PR #1931:
URL:
https://github.com/apache/cassandra-java-driver/pull/1931#discussion_r1794259046
##########
query-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/QueryBuilder.java:
##########
@@ -538,4 +541,12 @@ public static Truncate truncate(@Nullable String keyspace,
@NonNull String table
return truncate(
keyspace == null ? null : CqlIdentifier.fromCql(keyspace),
CqlIdentifier.fromCql(table));
}
+
+ public static Ann annOf(@NonNull CqlIdentifier cqlIdentifier, @NonNull
CqlVector<Number> vector) {
+ return new DefaultAnn(cqlIdentifier, vector);
+ }
+
+ public static Ann annOf(@NonNull String cqlIdentifier, @NonNull
CqlVector<Number> vector) {
+ return new DefaultAnn(CqlIdentifier.fromCql(cqlIdentifier), vector);
+ }
Review Comment:
Nice catch! Yes, you're correct; Apache Cassandra 5.0.x supports _vectors_
of any subtype _as a type_ but the ANN index used there only supports floats.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]