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 3BCD510817 for ; Thu, 10 Oct 2013 07:00:51 +0000 (UTC) Received: (qmail 95447 invoked by uid 500); 10 Oct 2013 07:00:49 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 95392 invoked by uid 500); 10 Oct 2013 07:00:49 -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 95168 invoked by uid 99); 10 Oct 2013 07:00:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 07:00:47 +0000 Date: Thu, 10 Oct 2013 07:00:47 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6173) Unable to delete multiple entries using In clause on clustering part of compound key 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-6173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-6173: ---------------------------------------- Priority: Minor (was: Major) > Unable to delete multiple entries using In clause on clustering part of compound key > ------------------------------------------------------------------------------------ > > Key: CASSANDRA-6173 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6173 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Ashot Golovenko > Priority: Minor > > I have the following table: > CREATE TABLE user_relation ( > u1 bigint, > u2 bigint, > mf int, > i boolean, > PRIMARY KEY (u1, u2)); > And I'm trying to delete two entries using In clause on clustering part of compound key and I fail to do so: > cqlsh:bm> DELETE from user_relation WHERE u1 = 755349113 and u2 in (100003404014120, 100002537242743); > Bad Request: Invalid operator IN for PRIMARY KEY part u2 > Although the select statement works just fine: > cqlsh:bm> select * from user_relation WHERE u1 = 755349113 and u2 in (100003404014120, 100002537242743); > u1 | u2 | i | mf > -----------+-----------------+------+---- > 755349113 | 100002537242743 | null | 27 > 755349113 | 100003404014120 | null | 0 > (2 rows) -- This message was sent by Atlassian JIRA (v6.1#6144)