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


##########
src/java/org/apache/cassandra/cql3/Operator.java:
##########
@@ -44,6 +58,34 @@ public boolean isSatisfiedBy(AbstractType<?> type, 
ByteBuffer leftOperand, ByteB
         {
             return type.compareForCQL(leftOperand, rightOperand) == 0;
         }
+
+        @Override
+        public boolean requiresFilteringOrIndexingFor(ColumnMetadata.Kind 
columnKind)
+        {
+            return !columnKind.isPrimaryKeyKind();

Review Comment:
   nit: EQ might still require filtering if it's on a primary key column that's 
a clustering without previous clusterings in the hierarchy specified, but I'm 
guessing validation for this is handled elsewhere?



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