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 22E6D115A5 for ; Fri, 8 Aug 2014 22:22:12 +0000 (UTC) Received: (qmail 45199 invoked by uid 500); 8 Aug 2014 22:22:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 45165 invoked by uid 500); 8 Aug 2014 22:22:12 -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 45144 invoked by uid 99); 8 Aug 2014 22:22:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 22:22:11 +0000 Date: Fri, 8 Aug 2014 22:22:11 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7506) querying secondary index using complete collection should warn/error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-7506: ----------------------------------- Attachment: 7506-v2.txt I accidentally missed a unit test in my first patch, so v2 adds that. > 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.1.1 > > Attachments: 7506-v2.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); > 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)