Return-Path: X-Original-To: apmail-cassandra-dev-archive@www.apache.org Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBBEA17631 for ; Fri, 6 Feb 2015 14:52:35 +0000 (UTC) Received: (qmail 7608 invoked by uid 500); 6 Feb 2015 14:52:34 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 7567 invoked by uid 500); 6 Feb 2015 14:52:34 -0000 Mailing-List: contact dev-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 dev@cassandra.apache.org Received: (qmail 7553 invoked by uid 99); 6 Feb 2015 14:52:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 14:52:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of belliottsmith@datastax.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 14:52:09 +0000 Received: by mail-wi0-f169.google.com with SMTP id h11so3037445wiw.0 for ; Fri, 06 Feb 2015 06:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datastax.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+V/2qaRKMCWqO4kb8xLU+aAbH+K13LIDPZd3RlThGoc=; b=G6GCn0gfFJjc6K1Qy3d+bS5IuvG5XbR2OmYf66WriH/6wtsnCprReO/tljS635B42p 2nCSUaHi7eU7neoQPQPeeMBT6ezTS+krx7FmDc3A0QzZkXDf5VlXxStPsFDWVhGkN4VJ Fgox67ZExL/roUEKMjxqMb4//4bU5aWA0T+hY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=+V/2qaRKMCWqO4kb8xLU+aAbH+K13LIDPZd3RlThGoc=; b=TiszOHvnCNHpMimilxKuvmm7IrznhTY7b1RnVPRIBDL2XFt6rO20thQy81kPxOITkE CtPvjjEPtmGVeS5kR0I/33zq2duX4VjRUVvFHcBHazc9Lm4X0Z0GriGr1zcGjTNMQPI6 erxaMVDU84qHEVgoWq1EI0liS0rY+u/i/fuQeE+u36i2amK+jfEpZm7Qu/++mZD2CTYC dl15RZN4cIfi1b+/t7tVxNWD32aXd6FJrxsEPOgfJCk3FwewJ1rq23wG0C2JGz0NQet4 XI1v/zRcz5oTJLJmCH+EDHr+WnI70FY8QL75i1shXa6EJ+7pps9w74QENs27HqYZgJJ8 Z3mg== X-Gm-Message-State: ALoCoQkXlkERDNIV38fqdoREgZBQNUOxB8aYY6PC9diulGtw3QXTYPaRRYDvLhPkwGR6Wvg0huAm MIME-Version: 1.0 X-Received: by 10.181.13.176 with SMTP id ez16mr4070820wid.78.1423234237763; Fri, 06 Feb 2015 06:50:37 -0800 (PST) Received: by 10.216.239.74 with HTTP; Fri, 6 Feb 2015 06:50:37 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Feb 2015 14:50:37 +0000 Message-ID: Subject: Re: Conditional Update Code? From: Benedict Elliott Smith To: dev@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d043c7cac2cb717050e6c8be2 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7cac2cb717050e6c8be2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It's quite possible support could be added to evaluate a UDF as part of the condition check. The code you're looking for are implementors of CASRequest.appliesTo(), in CQL3CasRequest and CassandraServer.ThriftCASRequest It seems like https://issues.apache.org/jira/browse/CASSANDRA-8488 would offer the basic functionality, except that it is expected to require ALLOW FILTERING, which is unlikely to be permitted for a CAS operation, since the implication is that the work is too expensive for normal use. Such a constraint is probably not necessary if a clustering prefix is provided, though (i.e. a full CQL row key). On Fri, Feb 6, 2015 at 2:38 PM, Brian O'Neill wrote= : > > All, > > I=C2=B9m just looking for a little direction=C5=A0 > > Anyone know where I can find the code that checks the condition in a > conditional update? > We=C2=B9d love to have more expressive conditions, beyond just equality. = (e.g. > column contains? value) > > I wanted to see how hard this would be to contribute. > Is such a JIRA already open? > > -brian > > --- > Brian O'Neill > Chief Technology Officer > Health Market Science, a LexisNexis Company > 215.588.6024 Mobile =E2=82=AC @boneill42 > > > This information transmitted in this email message is for the intended > recipient only and may contain confidential and/or privileged material. I= f > you received this email in error and are not the intended recipient, or t= he > person responsible to deliver it to the intended recipient, please contac= t > the sender at the email above and delete this email and any attachments a= nd > destroy any copies thereof. Any review, retransmission, dissemination, > copying or other use of, or taking any action in reliance upon, this > information by persons or entities other than the intended recipient is > strictly prohibited. > > > > --f46d043c7cac2cb717050e6c8be2--