maedhroz commented on code in PR #4290:
URL: https://github.com/apache/cassandra/pull/4290#discussion_r2334911661


##########
test/unit/org/apache/cassandra/cql3/validation/entities/SecondaryIndexTest.java:
##########
@@ -843,16 +844,16 @@ public void prepareStatementsWithLIKEClauses() throws 
Throwable
 
         // LIKE is not supported on indexes of non-literal values
         // this is rejected before binding, so the value isn't available in 
the error message
-        assertInvalidMessage("LIKE restriction is only supported on properly 
indexed columns. v3 LIKE ? is not valid",
+        assertInvalidMessage("Cannot execute this query as it might involve 
data filtering and thus may have unpredictable performance. If you want to 
execute this query despite the performance unpredictability, use ALLOW 
FILTERING",

Review Comment:
   nit: Can we use `StatementRestrictions.REQUIRES_ALLOW_FILTERING_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]

Reply via email to