cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Slater (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12718) typo in cql examples
Date Wed, 28 Sep 2016 05:15:21 GMT

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

Ben Slater commented on CASSANDRA-12718:
----------------------------------------

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)

Mime
View raw message