You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/02/04 16:47:31 UTC

[GitHub] [cassandra] subkanthi commented on a change in pull request #1373: [17198] Removed LIKE restriction in StatementRestrictions

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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org