mike-tr-adamson commented on code in PR #2673:
URL: https://github.com/apache/cassandra/pull/2673#discussion_r1371640221


##########
src/java/org/apache/cassandra/index/sai/StorageAttachedIndex.java:
##########
@@ -90,17 +99,35 @@
 import org.apache.cassandra.schema.ColumnMetadata;
 import org.apache.cassandra.schema.IndexMetadata;
 import org.apache.cassandra.schema.TableMetadata;
+import org.apache.cassandra.service.ClientWarn;
 import org.apache.cassandra.service.StorageService;
 import org.apache.cassandra.utils.Pair;
 import org.apache.cassandra.utils.concurrent.OpOrder;
 
+import static 
org.apache.cassandra.index.sai.disk.v1.IndexWriterConfig.MAX_TOP_K;
+
 public class StorageAttachedIndex implements Index
 {
     public static final String NAME = "sai";
+    
+    public static final String VECTOR_USAGE_WARNING = "SAI ANN indexes on 
vector columns are experimental and are not recommended for production use.\n" +
+                                                      "They don't yet support 
SELECT queries with:\n" +
+                                                      " * Consistency level 
higher than ONE/LOCAL_ONE.\n" +
+                                                      " * Paging.\n" +
+                                                      " * No LIMIT clauses.\n" 
+
+                                                      " * PER PARTITION LIMIT 
clauses.\n" +
+                                                      " * GROUP BY clauses.\n" 
+
+                                                      " * Aggregation 
functions.\n" +
+                                                      " * Filters on columns 
without a SAI index.\n" +
+                                                      "Most of these 
limitations are planned to be removed in future versions.";

Review Comment:
   Agreed, we don't need to say this.



-- 
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]

Reply via email to