bereng commented on code in PR #2896:
URL: https://github.com/apache/cassandra/pull/2896#discussion_r1404003737


##########
test/unit/org/apache/cassandra/cql3/validation/operations/SelectTest.java:
##########
@@ -341,8 +344,11 @@ public void testSetContainsWithIndex() throws Throwable
             assertInvalidMessage("Unsupported unset value for column 
categories",
                                  "SELECT * FROM %s WHERE account = ? AND id = 
? AND categories CONTAINS ?", "test", 5, unset());
 
-            
assertInvalidMessage(StatementRestrictions.REQUIRES_ALLOW_FILTERING_MESSAGE,
-                                 "SELECT * FROM %s WHERE account = ? AND 
categories CONTAINS ? AND categories CONTAINS ?", "xyz", "lmn", "notPresent");
+            if 
(DatabaseDescriptor.getDefaultSecondaryIndex().equals(CassandraIndex.NAME))

Review Comment:
   I wonder if it would read better to move this that is repeated so much into 
a method in CQLTester with some javadoc explanation



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