You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by DuyHai Doan <do...@gmail.com> on 2014/03/21 22:15:41 UTC

Question on CAS

Hello

After reading the latest CQL3 documentation, I realize that it's not
possible to perform a CAS update with some conditions:

 UPDATE users .SET .... WHERE user_id=... IF password EXISTS
 UPDATE users .SET .... WHERE user_id=... IF password != null


Is there a technical reason not to allow CAS update with inequality or
EXISTS condition ?

 Regards

 Duy Hai DOAN

Re: Question on CAS

Posted by Tyler Hobbs <ty...@datastax.com>.
On Fri, Mar 21, 2014 at 4:15 PM, DuyHai Doan <do...@gmail.com> wrote:

> Is there a technical reason not to allow CAS update with inequality or
> EXISTS condition ?


No, see https://issues.apache.org/jira/browse/CASSANDRA-6839


-- 
Tyler Hobbs
DataStax <http://datastax.com/>