[
https://issues.apache.org/jira/browse/CASSANDRA-8155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14178531#comment-14178531
]
Philip Thompson edited comment on CASSANDRA-8155 at 10/21/14 3:38 PM:
----------------------------------------------------------------------
This is probably the same problem that was affecting 7891
was (Author: philipthompson):
This probably the same problem that was affecting 7891
> confusing error when erroneously querying map secondary index
> -------------------------------------------------------------
>
> Key: CASSANDRA-8155
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8155
> Project: Cassandra
> Issue Type: Bug
> Reporter: Russ Hatch
> Priority: Minor
> Labels: cqlsh, lhf
>
> With a secondary index on values, attempting to query by key returns an error
> message of "list index out of range".
> This is kinda a similar issue to CASSANDRA-8147 (but that scenario results in
> no error when there probably should be one).
> To repro:
> {noformat}
> cqlsh:test> CREATE TABLE test.foo (
> ... id1 text,
> ... id2 text,
> ... categories map<text, text>,
> ... PRIMARY KEY (id1, id2));
> cqlsh:test> CREATE INDEX foo_categories_idx ON test.foo (categories);
> cqlsh:test> insert into foo (id1, id2, categories) values ('foo', 'bar',
> {'firstkey':'one', 'secondkey':'two'});
> {noformat}
> Now try to query the existing values index by key:
> {noformat}
> cqlsh:test> select * from foo where categories contains key 'firstkey';
> list index out of range
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)