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


##########
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();
+        }
+
+        @Override
+        public RangeSet<ClusteringElements> 
restrict(RangeSet<ClusteringElements> rangeSet, List<ClusteringElements> args)
+        {
+            assert args.size() == 1;

Review Comment:
   nit: Given we never run w/ `-da`, perhaps we could add a short error message 
(I'm guessing saying we can't equal multiple things at the same time)?



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