You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ben Slater (JIRA)" <ji...@apache.org> on 2016/09/28 05:15:21 UTC

[jira] [Comment Edited] (CASSANDRA-12718) typo in cql examples

    [ https://issues.apache.org/jira/browse/CASSANDRA-12718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15528435#comment-15528435 ] 

Ben Slater edited comment on CASSANDRA-12718 at 9/28/16 5:14 AM:
-----------------------------------------------------------------

The JSON in the insert also needs to be updated with a couple of typos (comma before work and remove quotes around zip). Probably easiest to do them as one ticket. Fixed version is:
INSERT INTO user (name, addresses)
          VALUES ('z3 Pr3z1den7', {
              'home' : {
                  street: '1600 Pennsylvania Ave NW',
                  city: 'Washington',
                  zip: 20500,
                  phones: { 'cell' : { country_code: 1, number: '202 456-1111' },
                            'landline' : { country_code: 1, number: '...' } }
              },
              'work' : {
                  street: '1600 Pennsylvania Ave NW',
                  city: 'Washington',
                  zip: 20500,
                  phones: { 'fax' : { country_code: 1, number: '...' } }
              }
          })


was (Author: slater_ben):
The JSON in the insert also needs to be updated with a couple of typos (comma before work and remove quotes around zip). Probably easiest to do them as one ticket. Fixed version is:
```INSERT INTO user (name, addresses)
          VALUES ('z3 Pr3z1den7', {
              'home' : {
                  street: '1600 Pennsylvania Ave NW',
                  city: 'Washington',
                  zip: 20500,
                  phones: { 'cell' : { country_code: 1, number: '202 456-1111' },
                            'landline' : { country_code: 1, number: '...' } }
              },
              'work' : {
                  street: '1600 Pennsylvania Ave NW',
                  city: 'Washington',
                  zip: 20500,
                  phones: { 'fax' : { country_code: 1, number: '...' } }
              }
          })```

> typo in cql examples 
> ---------------------
>
>                 Key: CASSANDRA-12718
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12718
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Documentation and Website
>            Reporter: Jon Haddad
>            Assignee: Jon Haddad
>            Priority: Trivial
>
> select query on sets using the wrong field



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)