subkanthi commented on a change in pull request #1373:
URL: https://github.com/apache/cassandra/pull/1373#discussion_r799638114
##########
File path:
src/java/org/apache/cassandra/cql3/restrictions/StatementRestrictions.java
##########
@@ -174,13 +174,8 @@ public StatementRestrictions(StatementType type,
}
else if (relation.isLIKE())
{
+ // CASSANDRA-17198 Remove restrictions in LIKE statement.
Restriction restriction = relation.toRestriction(table,
boundNames);
-
- if (!type.allowUseOfSecondaryIndices() ||
!restriction.hasSupportingIndex(indexRegistry))
- throw new InvalidRequestException(String.format("LIKE
restriction is only supported on properly " +
- "indexed
columns. %s is not valid.",
-
relation.toString()));
-
Review comment:
Removed.
--
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]