You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Kim Yong Hwan (JIRA)" <ji...@apache.org> on 2013/11/13 10:05:23 UTC

[jira] [Created] (CASSANDRA-6342) cassandra document errata

Kim Yong Hwan created CASSANDRA-6342:
----------------------------------------

             Summary: cassandra document errata
                 Key: CASSANDRA-6342
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6342
             Project: Cassandra
          Issue Type: Bug
            Reporter: Kim Yong Hwan
            Priority: Trivial


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'




--
This message was sent by Atlassian JIRA
(v6.1#6144)