Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6914

Map element is not allowed in CAS condition with DELETE/UPDATE query

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal
    • Since Version:

      Description

      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

        Attachments

        1. 6914.txt
          10 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              dyx Dmitriy Ukhlov
              Authors:
              Sylvain Lebresne
              Reviewers:
              Tom Hobbs
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: