You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Russ Hatch (JIRA)" <ji...@apache.org> on 2014/07/08 01:29:34 UTC
[jira] [Updated] (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 ]
Russ Hatch updated CASSANDRA-7506:
----------------------------------
Summary: querying secondary index using complete collection should warn/error (was: querying secondary index using equals with set literal should give a message)
> 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
>
> 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)