cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7506) querying secondary index using complete collection should warn/error
Date Mon, 18 Aug 2014 12:43:19 GMT

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

Sylvain Lebresne commented on CASSANDRA-7506:
---------------------------------------------

+1

> 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
>             Fix For: 2.0.10, 2.1.1
>
>         Attachments: 7506-2.0.txt, 7506-v2.txt, 7506-v3.txt, 7506.txt
>
>
> 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)

Mime
View raw message