Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4278

Can't specify certain keyspace properties in CQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None
    • Low

    Description

      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:

      CREATE KEYSPACE Foo
        WITH strategy_class = 'NetworkTopologyStrategy'
            AND strategy_options:"us-east"=1
            AND strategy_options:"us-west"=1;
      

      (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.

      Attachments

        1. 4278.txt
          2 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            thepaul paul cannon
            Sylvain Lebresne
            Pavel Yaskevich
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: