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 2014/07/08 23:00:05 UTC

[jira] [Assigned] (CASSANDRA-7506) querying secondary index using complete collection should warn/error

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

Jonathan Ellis reassigned CASSANDRA-7506:
-----------------------------------------

    Assignee: Tyler Hobbs

> querying secondary index using complete collection should warn/error
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-7506
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7506
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: cassandra 2.1.0-rc2, java 1.7.0_60
>            Reporter: Russ Hatch
>            Assignee: Tyler Hobbs
>
> Cassandra does not seem to support querying a set literal like so:
> {noformat}
> select * from testtable where pkey='foo' and mycollection = {'one', 'two'};
> {noformat}
> We currently don't let the user know this query is problematic, rather we just return no rows.
> To reproduce:
> {noformat}
> create keyspace test with replication = {'class': 'SimpleStrategy', 'replication_factor':1} ;
> use test ;
> create table testtable (pkey text PRIMARY KEY, mycollection set<text>);
> create index on testtable (mycollection);
> insert into testtable (pkey, mycollection) VALUES ( 'foo', {'one','two'};
> cqlsh:test> select * from testtable where pkey='foo' and mycollection = {'one', 'two'};
> (0 rows)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)