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

Can't add index with a name prefixed with 'index'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 2.0.2
    • None
    • None
    • Normal

    Description

      cqlsh code:

      cqlsh> drop keyspace test_add_index;
      cqlsh> CREATE KEYSPACE test_add_index WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} ;
      cqlsh> create table test_add_index.cf1 (a text PRIMARY KEY, b text , c text );
      cqlsh> create index index1 on test_add_index.cf1 (c);
      Bad Request: Duplicate index name index1
      cqlsh> drop keyspace test_add_index;
      cqlsh> CREATE KEYSPACE test_add_index WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} ;
      cqlsh> create table test_add_index.cf1 (a text PRIMARY KEY, b text , c text );
      cqlsh> create index blah on test_add_index.cf1 (c);
      cqlsh>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nickmbailey Nick Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: