maedhroz commented on code in PR #3575:
URL: https://github.com/apache/cassandra/pull/3575#discussion_r1800275166


##########
src/java/org/apache/cassandra/service/reads/DataResolver.java:
##########
@@ -278,6 +277,10 @@ private PartitionIterator 
resolveWithReplicaFilteringProtection(E replicas, Repa
 
     private  UnaryOperator<PartitionIterator> 
preCountFilterForReplicaFilteringProtection()
     {
+        // Key columns are immutable and should never need to participate in 
replica filtering
+        if (!command.rowFilter().hasNonKeyExpressions())
+            return results -> results;

Review Comment:
   Yeah, this will be fine on the next rebase either way. Might as well leave 
it in.



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

Reply via email to