You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2011/06/29 02:46:28 UTC

[jira] [Resolved] (CASSANDRA-2838) Query indexed column with key filte

     [ https://issues.apache.org/jira/browse/CASSANDRA-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-2838.
---------------------------------------

    Resolution: Fixed

key comparisons are only useful for OPP, which you shouldn't be using.

> Query indexed column with key filte
> -----------------------------------
>
>                 Key: CASSANDRA-2838
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2838
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Danny Wang
>
> To be able to support query like this,
>  (KEY>  foo AND KEY<  bar and name1 = value1
> Currently I found this code
>  
>         // Start and finish keys, *and* column relations (KEY>  foo AND KEY<  bar and name1 = value1).
>         if (select.isKeyRange()&&  (select.getKeyFinish() != null)&&  (select.getColumnRelations().size()>  0))
>             throw new InvalidRequestException("You cannot combine key range and by-column clauses in a SELECT");
>  
>  in
>  
>  http://svn.apache.org/repos/asf/cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java
>  
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira