You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "smiklosovic (via GitHub)" <gi...@apache.org> on 2023/03/15 11:55:38 UTC

[GitHub] [cassandra] smiklosovic commented on a diff in pull request #2217: CASSANDRA-18331

smiklosovic commented on code in PR #2217:
URL: https://github.com/apache/cassandra/pull/2217#discussion_r1136935172


##########
src/java/org/apache/cassandra/cql3/statements/SelectStatement.java:
##########
@@ -1458,7 +1458,8 @@ private void checkNeedsFiltering(StatementRestrictions restrictions) throws Inva
                 // We will potentially filter data if either:
                 //  - Have more than one IndexExpression
                 //  - Have no index expression and the row filter is not the identity
-                checkFalse(restrictions.needFiltering(), StatementRestrictions.REQUIRES_ALLOW_FILTERING_MESSAGE);
+                if (restrictions.requiresAllowFilteringIfNotSpecified())

Review Comment:
   yeah I was thinking about moving it there but I like how `restrictions.needFiltering()` is isolated in what it does.



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