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

LWT: Inserting Subset of columns returns all columns

    XMLWordPrintableJSON

Details

    Description

      See: https://github.com/gocql/gocql/issues/792#issuecomment-248983669

      When inserting a subset of the table columns with the use of light weight transactions the cassandra result returns a full set of unordered cassandra column values.

      SETUP:

      CREATE TABLE IF NOT EXISTS test.inserttest(
          key bigint,
          session_token text,
      
          foo text, 
          bar text,
      PRIMARY KEY(key, event_date, session_token);
      
      INSERT INTO test.inserttest(key, session_token, foo) VALUES (1, 'myToken', 'baz') IF NOT EXISTS;
      
      insert into test.inserttest(key, session_token, foo) VALUES (1, 'myToken', 'bez') IF NOT EXISTS;

      Expected result: Returns False, 1, myToken, baz
      Actual result: Returns true and all column values.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              highstead@gmail.com Highstead
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: