maedhroz commented on code in PR #3507:
URL: https://github.com/apache/cassandra/pull/3507#discussion_r1739457451
##########
src/java/org/apache/cassandra/cql3/restrictions/SimpleRestriction.java:
##########
@@ -327,8 +327,11 @@ public void addToRowFilter(RowFilter filter, IndexRegistry
indexRegistry, QueryO
{
case SINGLE_COLUMN:
List<ByteBuffer> buffers = bindAndGet(options);
- if (operator == Operator.IN || operator == Operator.BETWEEN)
+ if (operator.kind() == Operator.Kind.TERNARY ||
operator.kind() == Operator.Kind.MULTI_VALUE)
{
+ // For BETWEEN we support like in SQL reversed bounds
+ if (operator.kind() == Operator.Kind.TERNARY)
Review Comment:
```suggestion
if (operator.kind() == Operator.Kind.TERNARY &&
column.isClusteringColumn())
```
I was wondering if we can do something like this to avoid sorting when we
don't have a clustering key column in the first place?
--
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]