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

Alex Petrov commented on CASSANDRA-11310:
-----------------------------------------

[~blerer] I've moved forward a bit yesterday, as far as I understand problem 
consists of several parts:
  * when non-first clustering column is restricted (for example, in the b_mon 
in example table) with the slice restriction
  * when multiple clustering columns are restricted with slice restriction

So any combination of `b_mon > 'oct'`, `b_yr > '2015' AND b_mon > '06'` or 
`(b_yr, b_mon) > ('2015', '06')`, right? Since it seems that it's impossible at 
the moment to build a query where there's more than a single non-EQ 
restrictions.

> Allow filtering on clustering columns for queries without secondary indexes
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-11310
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11310
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: Benjamin Lerer
>            Assignee: Alex Petrov
>              Labels: doc-impacting
>             Fix For: 3.x
>
>
> Since CASSANDRA-6377 queries without index filtering non-primary key columns 
> are fully supported.
> It makes sense to also support filtering on clustering-columns.
> {code}
> CREATE TABLE emp_table2 (
> empID int,
> firstname text,
> lastname text,
> b_mon text,
> b_day text,
> b_yr text,
> PRIMARY KEY (empID, b_yr, b_mon, b_day));
> SELECT b_mon,b_day,b_yr,firstname,lastname FROM emp_table2
> WHERE b_mon='oct' ALLOW FILTERING;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to