cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Huang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6186) Can't add index with a name prefixed with 'index'
Date Sat, 12 Oct 2013 21:34:42 GMT

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

David Huang commented on CASSANDRA-6186:
----------------------------------------

Indexes must be created with unique names. The name "index1" is already in use by another
index.

cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor'
: 1};
cqlsh> CREATE TABLE test.testtable (a text, b text, c text, primary key (a));
cqlsh> CREATE INDEX index1 on test.testtable(b);
cqlsh> CREATE INDEX index1 on test.testtable(c);
Bad Request: Duplicate index name index1


> Can't add index with a name prefixed with 'index'
> -------------------------------------------------
>
>                 Key: CASSANDRA-6186
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6186
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Nick Bailey
>             Fix For: 2.0.2
>
>
> cqlsh code:
> {noformat}
> 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>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message