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

cassandra document errata

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.13, 2.0.3
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      Hi
      I think a sample cql statement of cassandra document (http://cassandra.apache.org/doc/cql3/CQL.html) is wrong. Please change it.
      ------------------------------------------------------
      Note that TTLs are allowed for both INSERT and UPDATE, but in both case the TTL set only apply to the newly inserted/updated values. In other words,

      // Updating (or inserting)
      UPDATE users USING TTL 10 SET favs['color'] = 'green' WHERE id = 'jsmith'
      will only apply the TTL to the

      { 'color' : 'green' }

      record, the rest of the map remaining unaffected.

      Deleting a map record is done with:

      DELETE favs['author'] FROM plays WHERE id = 'jsmith'

      upper DELETE cql statement is changed to below. On context of document, 'plays' table might be changed 'users' table.

      DELETE favs['author'] FROM users WHERE id = 'jsmith'

        Attachments

        1. 6342.patch
          0.4 kB
          Lyuben Todorov

          Activity

            People

            • Assignee:
              lyubent Lyuben Todorov
              Reporter:
              knight76 Kim Yong Hwan
              Authors:
              Lyuben Todorov
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: