You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jj...@apache.org on 2016/09/28 05:50:48 UTC
cassandra git commit: fixed typos in set example as well as UDT
example
Repository: cassandra
Updated Branches:
refs/heads/trunk d45f323eb -> c7f6ba8a4
fixed typos in set example as well as UDT example
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c7f6ba8a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c7f6ba8a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c7f6ba8a
Branch: refs/heads/trunk
Commit: c7f6ba8a42944338ec3e7d6793383b5537dfd82a
Parents: d45f323
Author: Jon Haddad <jo...@jonhaddad.com>
Authored: Tue Sep 27 20:25:34 2016 -0700
Committer: Jeff Jirsa <je...@crowdstrike.com>
Committed: Tue Sep 27 22:50:09 2016 -0700
----------------------------------------------------------------------
doc/source/cql/types.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/c7f6ba8a/doc/source/cql/types.rst
----------------------------------------------------------------------
diff --git a/doc/source/cql/types.rst b/doc/source/cql/types.rst
index e452f35..62e74ec 100644
--- a/doc/source/cql/types.rst
+++ b/doc/source/cql/types.rst
@@ -281,7 +281,7 @@ A ``set`` is a (sorted) collection of unique values. You can define and insert a
VALUES ('cat.jpg', 'jsmith', { 'pet', 'cute' });
// Replace the existing set entirely
- UPDATE images SET tags = { 'kitten', 'cat', 'lol' } WHERE id = 'jsmith';
+ UPDATE images SET tags = { 'kitten', 'cat', 'lol' } WHERE name = 'cat.jpg';
Further, sets support:
@@ -388,7 +388,7 @@ type, including collections or other UDT. For instance::
CREATE TYPE address (
street text,
city text,
- zip int,
+ zip text,
phones map<text, phone>
)
@@ -426,7 +426,7 @@ For instance, one could insert into the table define in the previous section usi
zip: '20500',
phones: { 'cell' : { country_code: 1, number: '202 456-1111' },
'landline' : { country_code: 1, number: '...' } }
- }
+ },
'work' : {
street: '1600 Pennsylvania Ave NW',
city: 'Washington',