mike-tr-adamson commented on code in PR #2673:
URL: https://github.com/apache/cassandra/pull/2673#discussion_r1358195155
##########
src/java/org/apache/cassandra/cql3/restrictions/StatementRestrictions.java:
##########
@@ -63,6 +69,14 @@ public final class StatementRestrictions
"Executing this query despite the performance unpredictability
with ALLOW FILTERING has been disabled " +
"by the allow_filtering_enabled property in cassandra.yaml";
+ public static final String ANN_REQUIRES_INDEX_MESSAGE = "ANN ordering by
vector requires the column to be indexed";
+
+ public static final String VECTOR_INDEXES_ANN_ONLY_MESSAGE = "Vector
indexes only support ANN queries";
+
+ public static final String ANN_ONLY_SUPPORTED_ON_VECTOR_MESSAGE = "ANN
ordering is only supported on float vector indexes";
+
+ public static final String ANN_REQUIRES_INDEXED_FILTERING_MESSAGE = "ANN
ordered queries can only be filtered with indexed columns";
Review Comment:
Unfortunately, the `StatementRestrictions` implementation is very different
on ds vsearch but I have picked up the improved error message.
--
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]