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 0EE89C8BA for ; Wed, 12 Nov 2014 19:51:35 +0000 (UTC) Received: (qmail 49987 invoked by uid 500); 12 Nov 2014 19:51:34 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 49887 invoked by uid 500); 12 Nov 2014 19:51:34 -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 49630 invoked by uid 99); 12 Nov 2014 19:51:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 19:51:34 +0000 Date: Wed, 12 Nov 2014 19:51:34 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-8302) Filtering for CONTAINS (KEY) on frozen collection clustering columns within a partition does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tyler Hobbs created CASSANDRA-8302: -------------------------------------- Summary: Filtering for CONTAINS (KEY) on frozen collection clustering columns within a partition does not work Key: CASSANDRA-8302 URL: https://issues.apache.org/jira/browse/CASSANDRA-8302 Project: Cassandra Issue Type: Bug Components: Core Reporter: Tyler Hobbs Assignee: Tyler Hobbs Fix For: 2.1.3 Create a table like this: {noformat} CREATE TABLE foo ( a int, b int, c frozen> d int, PRIMARY KEY (a, b, c, d) ) {noformat} and add an index on it: {noformat} CREATE INDEX ON foo(b) {noformat} A query across all partitions will work correctly: {noformat} cqlsh:ks1> insert into foo (a, b, c, d) VALUES (0, 0, {1, 2}, 0); cqlsh:ks1> SELECT * FROM foo WHERE b=0 AND c CONTAINS 2 and d=0 ALLOW FILTERING; a | b | c | d ---+---+--------+--- 0 | 0 | {1, 2} | 0 (1 rows) {noformat} But if the query is restricted to a single partition, it is considered invalid (and the error message isn't great): {noformat} cqlsh:ks1> SELECT * FROM foo WHERE a=0 AND b=0 AND c CONTAINS 2 and d=0 ALLOW FILTERING; code=2200 [Invalid query] message="No secondary indexes on the restricted columns support the provided operators: " {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)