blerer commented on code in PR #3095:
URL: https://github.com/apache/cassandra/pull/3095#discussion_r1589461943
##########
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:
What the methods mean is that the operator can **only** be executed with
either filtering or indexing for the column kind. In the case of EQ if it is a
primary key it is not the case. It **might** need filtering.
--
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]