Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 76764 invoked from network); 30 Apr 2010 17:49:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 17:49:28 -0000 Received: (qmail 28299 invoked by uid 500); 30 Apr 2010 17:49:27 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 28285 invoked by uid 500); 30 Apr 2010 17:49:27 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 28277 invoked by uid 99); 30 Apr 2010 17:49:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 17:49:27 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [131.215.239.119] (HELO mail.alumni.caltech.edu) (131.215.239.119) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 17:49:19 +0000 Received: from localhost (dsl081-082-089.lax1.dsl.speakeasy.net [64.81.82.89]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 402593F02EA; Fri, 30 Apr 2010 10:48:50 -0700 (PDT) X-DKIM: Sendmail DKIM Filter v2.8.2 mail.alumni.caltech.edu 402593F02EA DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alumni.caltech.edu; s=enforce; t=1272649730; bh=QNK8oRyaF4i0xqzBw3NCRy21p+MSC6IUzlaOBPMpORE=; h=Date:From:To:Subject:Message-ID:References:Mime-Version: Content-Type:In-Reply-To; b=dHwNwqWhAflgAwvaR7j5Jb74+0hS3WeKVr4WooRzaQxbL0DN/LFcTx2rRpPBeKvJY eJP2PJCwgZfCK8QZehr81FPX9e2NsFM41knP+DcmligvDPXejcaRkXxh9QKc7QjaAw vx2hxSd0x9xbFIN2bMvsOo4ZKqQGfi1jSrR34iq0= Date: Fri, 30 Apr 2010 10:48:49 -0700 From: Anthony Molinaro To: user@cassandra.apache.org Subject: Re: Batch mutate doesn't work Message-ID: <20100430174849.GB83987@alumni.caltech.edu> Mail-Followup-To: user@cassandra.apache.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-MailScanner-Information-Alumni: X-Alumni-MailScanner-ID: 402593F02EA.AA005 X-MailScanner-Alumni: No Virii found X-Spam-Status-Alumni: not spam, SpamAssassin (not cached, score=-3.268, required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60, DNS_FROM_OPENWHOIS 1.13, FH_DATE_PAST_20XX 0.00) X-MailScanner-From: anthonym@alumni.caltech.edu X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Apr 30, 2010 at 03:58:09PM +0200, Zubair Quraishi wrote: > % > % set second property ( fails! - why? ) > % > MutationMap = > { > Key, > { > <<"KeyValue">>, > [ > #mutation{ > column_or_supercolumn = #column{ name = "property" , value = > "value" , timestamp = 2 } > } > ] > } > }, > thrift_client:call( C, > 'batch_mutate', > [ "Keyspace1", > MutationMap, > 1 > ] ) I haven't actually tried compiling this, but looking at the records in the generated .hrl file and the .thrift file it looks like column_or_supercolumn in the mutation record is a #columnOrSuperColumn record, so I think you want MutationMap = { Key, { <<"KeyValue">>, [ #mutation { column_or_supercolumn = #columnOrSuperColumn { column = #column { name = "property", value = "value", timestamp = 2 } } } ] } }, Try that, -Anthony -- ------------------------------------------------------------------------ Anthony Molinaro