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

Dmitry Petrashko commented on CASSANDRA-3994:
---------------------------------------------

Please recheck it one more time.
I never mentioned that this patch is modifying get_indexed_slices.
As of current trunk get_ranged_slices uses 
ThriftValidation.validateKeyRange to validate key range in request
ThriftValidation.validateKeyRange uses ThriftValidation.validateFilterClauses 
(Line 507) to validate range.row_filter

And there it is checked that at least one (expression.op != null) && 
indexedColumns.contains(expression.column_name);
Thus current trunk Doesnt allow queries with filters not containing EQ 
operations on indexed columns.

This patch modifies validation of request in get_ranged_slices to allow 
requests with filters that use indexes on operations other than EQ.
                
> 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-v2.patch, 
> 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