cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4762) Support IN clause for any clustering column
Date Sat, 06 Sep 2014 01:14:29 GMT

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

Michael Shuler commented on CASSANDRA-4762:
-------------------------------------------

Tested out your 2.1 branch - builds fine, the new unit test passes for me, and I enabled and
ran the 3 dtests associated with this ticket number:
{noformat}
(master *)mshuler@hana:~/git/cassandra-dtest$ nosetests -vs --test-select-config=../run_excluded_tests.cfg
cql_tests.py
multi_in_compact_non_composite_test (cql_tests.TestCQL) ... ok
multi_in_compact_test (cql_tests.TestCQL) ... ok
multi_in_test (cql_tests.TestCQL) ... ok
{noformat}

> Support IN clause for any clustering column
> -------------------------------------------
>
>                 Key: CASSANDRA-4762
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4762
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: T Jake Luciani
>            Assignee: Benjamin Lerer
>              Labels: cql, docs
>             Fix For: 2.1.1
>
>         Attachments: 4762-1.txt
>
>
> Given CASSANDRA-3885
> It seems it should be possible to store multiple ranges for many predicates even the
inner parts of a composite column.
> They could be expressed as a expanded set of filter queries.
> example:
> {code}
> CREATE TABLE test (
>        name text,
>        tdate timestamp,
>        tdate2 timestamp,
>        tdate3 timestamp,
>        num double,
>        PRIMARY KEY(name,tdate,tdate2,tdate3)
>      ) WITH COMPACT STORAGE;
> SELECT * FROM test WHERE 
>   name IN ('a','b') and
>   tdate IN ('2010-01-01','2011-01-01') and
>   tdate2 IN ('2010-01-01','2011-01-01') and
>   tdate3 IN ('2010-01-01','2011-01-01') 
> {code}



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

Mime
View raw message