[ 
https://issues.apache.org/jira/browse/CASSANDRA-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222269#comment-13222269
 ] 

Dmitry Petrashko edited comment on CASSANDRA-3994 at 3/5/12 11:04 AM:
----------------------------------------------------------------------

As of current trunk, get_range_slices uses  ThriftValidation.validateKeyRange 
that uses validateFilterClauses.
It requires at least one EQ operation, especially it goes thought expressions 
applying
isIndexed |= (expression.op == IndexOperator.EQ) && 
indexedColumns.contains(expression.column_name);

Thus it requires at least one EQ operation. And marks requests with filters 
containing only > < comparisons on columns as invalid.

Currently we've developed index that can efficiently work with LT GT 
operations, this patch provides support for requests with filters that use 
index on operations other than equals.
                
      was (Author: darkdimius):
    Yes, but it allows only equals filter.
It uses ThriftValidation.validateFilterClauses that requires at least one EQ 
operation
isIndexed |= (expression.op == IndexOperator.EQ) && 
indexedColumns.contains(expression.column_name);

Currently we've developed index that can efficiently work with LT GT 
operations, this patch provides support for requests with filters that use 
index on operations other than equals.
                  
> Allow indexes for comparisons other than equal
> ----------------------------------------------
>
>                 Key: CASSANDRA-3994
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3994
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Dmitry Petrashko
>         Attachments: Validation_fix_for_filters_other_than_EQuals.patch
>
>
> As for now, validation marks filters with operations other than equal as 
> invalid.
> This is also gives initial support for indexes other than KEYS

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to