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/28 23:15:55 UTC

[GitHub] [cassandra] thingtwin1 commented on a change in pull request #1453: added enable for ALLOW FILTERING property

thingtwin1 commented on a change in pull request #1453:
URL: https://github.com/apache/cassandra/pull/1453#discussion_r816324562



##########
File path: src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
##########
@@ -231,7 +233,8 @@ public void authorize(ClientState state) throws InvalidRequestException, Unautho
 
     public void validate(ClientState state) throws InvalidRequestException
     {
-        // Nothing to do, all validation has been done by RawStatement.prepare()
+        if (parameters.allowFiltering && !SchemaConstants.isSystemKeyspace(table.keyspace))
+            checkTrue(DatabaseDescriptor.getGuardrailsConfig().getAllowFilteringEnabled(), "ALLOW FILTERING statement is prohibited");

Review comment:
       thank you for the clarification, I was unaware of this but will update the function now. 




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