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

DELETE CAS on 'primary key only' table

    XMLWordPrintableJSON

Details

    Description

      Following up on the "CAS on 'primary key only' table" issue [1] which added support for atomically creating a primary key only table, this ticket is requesting support for a CAS DELETE of a row from such a table.

      Currently these two different statements fail:

      Trying "DELETE FROM test1 WHERE k = 456 IF EXISTS" using cassandra-dbapi2:
      cql.apivalues.ProgrammingError: Bad Request: line 0:-1 no viable alternative at input '<EOF>'

      Trying "DELETE FROM test1 WHERE k = 456 IF k = 456"
      cql.apivalues.ProgrammingError: Bad Request: PRIMARY KEY part k found in SET part

      [1] https://issues.apache.org/jira/browse/CASSANDRA-5715

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              blair Blair Zajac
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: