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

update query deletes instead of update, upgraded to 2.0.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • None
    • None
    • ubuntu 12.04 on ec2

    • Normal

    Description

      I'm showing two examples below to show what happens. I'm using update, but technically it's an insert. This worked in the previous version, which I don't remember but it was 1.2+

      cqlsh:tagloom> update user_timeline set d=null WHERE uid='aa' and pid='aa';
      cqlsh:tagloom> select * from user_timeline where uid='aa' limit 4;
      (0 rows)

      cqlsh:tagloom> update user_timeline set d='a' WHERE uid='aa' and pid='aa';
      cqlsh:tagloom> select * from user_timeline where uid='aa' limit 4;
      uid | pid | d
      ---------
      aa | aa | a
      (1 rows)

      I run it again:
      cqlsh:tagloom> update user_timeline set d=null WHERE uid='aa' and pid='aa';
      cqlsh:tagloom> select * from user_timeline where uid='aa' limit 4;
      (0 rows)

      Seems like it's deleting the row. Was there a change that made the above results possible or is it a bug?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ps0296 Pardeep Singh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: