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

Sylvain Lebresne edited comment on CASSANDRA-4278 at 5/24/12 2:34 PM:
----------------------------------------------------------------------

Attaching patch that cleans up (I think) the definition of property names. Not 
only does it allow quoted identifiers, it also make the non quoted ones case 
insensitive. I'll note that it remove the support integer without quotes, i.e, 
one can't write "strategy_options:4 = ...", but I'm pretty sure this was 
neither used, nor is it useful.
                
      was (Author: slebresne):
    Attaching patch that cleans up (I think) the definition of property names. 
Not only does it allow quoted identifiers, it also make the non quoted ones 
case insensitive. I'll note that it remove the support integer without quotes, 
i.e, one can't write "strategy_options:4 = ...", but I'm pretty sure this was 
neither used, not is it useful.
                  
> Can't specify certain keyspace properties in CQL
> ------------------------------------------------
>
>                 Key: CASSANDRA-4278
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4278
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: paul cannon
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>              Labels: cql, cql3
>             Fix For: 1.1.1
>
>         Attachments: 4278.txt
>
>
> A user using EC2MultiRegionSnitch, where the datacenter name has to match the 
> AWS region names, will not be able to specify a keyspace's replica counts for 
> those datacenters using CQL. AWS region names contain hyphens, which are not 
> valid identifiers in CQL, and CQL keyspace/columnfamily properties must be 
> identifiers or identifiers separated by colons.
> Example:
> {noformat}
> CREATE KEYSPACE Foo
>   WITH strategy_class = 'NetworkTopologyStrategy'
>       AND strategy_options:"us-east"=1
>       AND strategy_options:"us-west"=1;
> {noformat}
> (see 
> http://mail-archives.apache.org/mod_mbox/cassandra-user/201205.mbox/browser 
> for context)
> ..will not currently work, with or without the double quotes.
> CQL should either allow hyphens in COMPIDENT, or allow quoted parts of a 
> COMPIDENT token.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to