cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11310) Allow filtering on clustering columns for queries without secondary indexes
Date Sat, 19 Mar 2016 13:58:33 GMT


Alex Petrov commented on CASSANDRA-11310:

I've tried to get it all sorted out and have handled most of the things by now, although some
cases are harder to handle without larger changes. For example, within the {{StatementRestrictions}}
we can't know whether there {{ClusteringColumnRestrictions}} would require filtering. One
of the cases is multiple column slices, when clustering columns are given in the correct order.
Without seeing actual restrictions (which are private to the {{PrimaryKeyRestrictionSet}}),
we can't assert that there is more than one slice. 

I think it will be simpler to handle on top of your branch:,
since there it's going to be possible to add logic related to the clustering columns within
the clustering columns class. Do you think it's a good idea? 

> Allow filtering on clustering columns for queries without secondary indexes
> ---------------------------------------------------------------------------
>                 Key: CASSANDRA-11310
>                 URL:
>             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
> 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
> {code}

This message was sent by Atlassian JIRA

View raw message