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

Can't prepare an UPDATE query with a counter column (CQL3)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 rc1
    • None
    • None
    • Low

    Description

      CQL3, binary protocol:

      demo(id int primary key, counter counter)

      Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?" yields 8704, "Invalid operation for commutative columnfamily counters" error.

      Attachments

        1. 5002.txt
          9 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            aleksey Aleksey Yeschenko
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: