cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Stepura (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6914) Map element is not allowed in CAS condition with DELETE/UPDATE query
Date Mon, 24 Mar 2014 17:56:45 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikhail Stepura updated CASSANDRA-6914:
---------------------------------------

    Description: 
{code}
CREATE TABLE test (id int, data map<text,text>, PRIMARY KEY(id));

INSERT INTO test (id, data) VALUES (1,{'a':'1'});

DELETE FROM test WHERE id=1 IF data['a']=null;
Bad Request: line 1:40 missing EOF at '='

UPDATE test SET data['b']='2' WHERE id=1 IF data['a']='1';
Bad Request: line 1:53 missing EOF at '='
{code}
These queries was successfuly executed with cassandra 2.0.5, but don't work in 2.0.6 release

  was:
CREATE TABLE test (id int, data map<text,text>, PRIMARY KEY(id));

INSERT INTO test (id, data) VALUES (1,{'a':'1'});

DELETE FROM test WHERE id=1 IF data['a']=null;
Bad Request: line 1:40 missing EOF at '='

UPDATE test SET data['b']='2' WHERE id=1 IF data['a']='1';
Bad Request: line 1:53 missing EOF at '='

These queries was successfuly executed with cassandra 2.0.5, but don't work in 2.0.6 release


> Map element is not allowed in CAS condition with DELETE/UPDATE query
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-6914
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6914
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Dmitriy Ukhlov
>            Assignee: Sylvain Lebresne
>             Fix For: 2.0.7
>
>
> {code}
> CREATE TABLE test (id int, data map<text,text>, PRIMARY KEY(id));
> INSERT INTO test (id, data) VALUES (1,{'a':'1'});
> DELETE FROM test WHERE id=1 IF data['a']=null;
> Bad Request: line 1:40 missing EOF at '='
> UPDATE test SET data['b']='2' WHERE id=1 IF data['a']='1';
> Bad Request: line 1:53 missing EOF at '='
> {code}
> These queries was successfuly executed with cassandra 2.0.5, but don't work in 2.0.6
release



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message