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 BBDC0CB18 for ; Sat, 6 Dec 2014 02:00:15 +0000 (UTC) Received: (qmail 95159 invoked by uid 500); 6 Dec 2014 02:00:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 95127 invoked by uid 500); 6 Dec 2014 02:00:15 -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 95115 invoked by uid 99); 6 Dec 2014 02:00:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Dec 2014 02:00:15 +0000 Date: Sat, 6 Dec 2014 02:00:15 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8397) Support UPDATE with IN requirement for clustering 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-8397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236475#comment-14236475 ] Jonathan Ellis commented on CASSANDRA-8397: ------------------------------------------- We've never supported multi-row updates. I'm not sure it's worth special casing this one. > Support UPDATE with IN requirement for clustering key > ----------------------------------------------------- > > Key: CASSANDRA-8397 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8397 > Project: Cassandra > Issue Type: Wish > Reporter: Jens Rantil > Assignee: Benjamin Lerer > Priority: Minor > > {noformat} > CREATE TABLE events ( > userid uuid, > id timeuuid, > content text, > type text, > PRIMARY KEY (userid, id) > ) > # Add data > cqlsh:mykeyspace> UPDATE events SET content='Hello' WHERE userid=57b47f85-56c4-4968-83cf-4c4e533944e9 AND id IN (046e9da0-7945-11e4-a76f-770773bbbf7e, 046e0160-7945-11e4-a76f-770773bbbf7e); > code=2200 [Invalid query] message="Invalid operator IN for PRIMARY KEY part id" > {noformat} > I was surprised this doesn't work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)