cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-11310) Allow filtering on clustering columns for queries without secondary indexes
Date Thu, 10 Mar 2016 20:47:40 GMT


Alex Petrov updated CASSANDRA-11310:
    Attachment: 0001-Allow-filtering-on-clustering-columns-for-queries-wi.patch

Here's a very rough version, mostly to understand if it generally goes the right direction.

I've tried to avoid adding `useFiltering` to the `PrimaryKeyRestrictionSet`, although that'd
require exposing `Restrictions` iterator since the validations are different for queries that
allow filtering. So I've left it "as-is" for now.

Other than that - I've tried to cover several types of queries in tests. 
I'm still not sure if the handling of multi-columns is correct, since their `SliceRestriction::addRowFilterTo`
is not permitted at the moment.

{{CONAINS}} works as expected, too.

I haven't yet ran / tried dtests, will do it hopefully tomorrow. 

> 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
>         Attachments: 0001-Allow-filtering-on-clustering-columns-for-queries-wi.patch
> 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