Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A89617CDE for ; Mon, 16 Feb 2015 02:53:12 +0000 (UTC) Received: (qmail 79877 invoked by uid 500); 16 Feb 2015 02:53:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 79838 invoked by uid 500); 16 Feb 2015 02:53:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 79823 invoked by uid 99); 16 Feb 2015 02:53:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 02:53:11 +0000 Date: Mon, 16 Feb 2015 02:53:11 +0000 (UTC) From: "007reader (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-8810) incorrect indexing of list collection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 007reader created CASSANDRA-8810: ------------------------------------ Summary: incorrect indexing of list collection Key: CASSANDRA-8810 URL: https://issues.apache.org/jira/browse/CASSANDRA-8810 Project: Cassandra Issue Type: Bug Components: Core Environment: windows 8 Reporter: 007reader Fix For: 2.1.2 in a table with one indexed field type list data retrieval is not working properly: I have a simple table with an indexed list field, but it shows unexpected behavior when I query the list. Am i doing something incorrect? create table test (whole text PRIMARY KEY, parts list); create index on test (parts); insert into test (whole,parts) values('a', ['a']); insert into test (whole,parts) values('b', ['b']); insert into test (whole,parts) values('c', ['c']); insert into test (whole,parts) values('a.a', ['a','a']); insert into test (whole,parts) values('a.b', ['a','b']); insert into test (whole,parts) values('a.c', ['a','c']); insert into test (whole,parts) values('b.a', ['b','a']); insert into test (whole,parts) values('b.b', ['b','b']); insert into test (whole,parts) values('b.c', ['b','c']); insert into test (whole,parts) values('c.c', ['c','c']); insert into test (whole,parts) values('c.b', ['c','b']); insert into test (whole,parts) values('c.a', ['c','a']); This is expected behavior: ------------------------------------------ select * from test where parts contains 'a' ALLOW FILTERING; whole | parts -------+------------ a | ['a'] b.a | ['b', 'a'] a.c | ['a', 'c'] a.b | ['a', 'b'] a.a | ['a', 'a'] c.a | ['c', 'a'] >From the following query I expect a subset of the previous query result, but it returns no data --------------------------------------------------- select * from test where parts contains 'a' and parts contains 'b' ALLOW FILTERING; whole | parts -------+------- -- This message was sent by Atlassian JIRA (v6.3.4#6332)