maedhroz commented on code in PR #4290:
URL: https://github.com/apache/cassandra/pull/4290#discussion_r2334895850
##########
test/unit/org/apache/cassandra/index/sai/cql/UnindexedExpressionsTest.java:
##########
@@ -63,7 +63,7 @@ public void unsupportedOperatorsAreHandledTest() throws
Throwable
execute("INSERT INTO %s (pk, val1, val2) VALUES (4, 4, '44')");
// The LIKE operator is rejected because it needs to be handled by an
index
- assertInvalidMessage("LIKE restriction is only supported on properly
indexed columns",
+ 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 just use
`StatementRestrictions.REQUIRES_ALLOW_FILTERING_MESSAGE` here?
--
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]