You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ty...@apache.org on 2015/07/09 18:54:53 UTC

cassandra git commit: Clarify CQL literal handling of JSON in CQL3 docs

Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 af1c65843 -> 136ffeda7


Clarify CQL literal handling of JSON in CQL3 docs


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/136ffeda
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/136ffeda
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/136ffeda

Branch: refs/heads/cassandra-2.2
Commit: 136ffeda7399f8c1dbbac1f33ddd034b00172c74
Parents: af1c658
Author: Tyler Hobbs <ty...@gmail.com>
Authored: Thu Jul 9 11:54:11 2015 -0500
Committer: Tyler Hobbs <ty...@gmail.com>
Committed: Thu Jul 9 11:54:11 2015 -0500

----------------------------------------------------------------------
 doc/cql3/CQL.textile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/136ffeda/doc/cql3/CQL.textile
----------------------------------------------------------------------
diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile
index ca09627..773ff91 100644
--- a/doc/cql3/CQL.textile
+++ b/doc/cql3/CQL.textile
@@ -2000,7 +2000,9 @@ Any columns which are ommitted from the @JSON@ map will be defaulted to a @NULL@
 
 h3(#jsonEncoding). JSON Encoding of Cassandra Data Types
 
-Where possible, Cassandra will represent and accept data types in their native @JSON@ representation.  Cassandra will also accept string representations matching the CQL literal format for all data types.  The following table describes the encodings that Cassandra will accept in @INSERT JSON@ values (and @fromJson()@ arguments) as well as the format Cassandra will use when returning data for @SELECT JSON@ statements (and @fromJson()@):
+Where possible, Cassandra will represent and accept data types in their native @JSON@ representation.  Cassandra will also accept string representations matching the CQL literal format for all single-field types.  For example, floats, ints, UUIDs, and dates can be represented by CQL literal strings.  However, compound types, such as collections, tuples, and user-defined types must be represented by native @JSON@ collections (maps and lists) or a JSON-encoded string representation of the collection.
+
+The following table describes the encodings that Cassandra will accept in @INSERT JSON@ values (and @fromJson()@ arguments) as well as the format Cassandra will use when returning data for @SELECT JSON@ statements (and @fromJson()@):
 
 |_. type    |_. formats accepted   |_. return format |_. notes|
 |@ascii@    |string                |string           |Uses JSON's @\u@ character escape|