mike-tr-adamson commented on code in PR #2673:
URL: https://github.com/apache/cassandra/pull/2673#discussion_r1334280798


##########
src/java/org/apache/cassandra/cql3/Operator.java:
##########
@@ -258,6 +258,20 @@ public boolean isSatisfiedBy(AbstractType<?> type, 
ByteBuffer leftOperand, ByteB
         {
             throw new UnsupportedOperationException();
         }
+    },
+    ANN(15)
+    {
+        @Override
+        public String toString()
+        {
+            return "ANN";
+        }
+
+        @Override
+        public boolean isSatisfiedBy(AbstractType<?> type, ByteBuffer 
leftOperand, ByteBuffer rightOperand)
+        {
+            return true;

Review Comment:
   I have changed the implementation to throw a UOE and documented the reason. 
This method should never be called because the ANN operator is only supported 
by the index. This in the same as the LIKE operator.



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