You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ben Sykes (JIRA)" <ji...@apache.org> on 2013/10/12 01:00:44 UTC

[jira] [Commented] (CASSANDRA-6186) Can't add index with a name prefixed with 'index'

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

Ben Sykes commented on CASSANDRA-6186:
--------------------------------------

This works for me:

{code}
cqlsh> CREATE KEYSPACE test_add_index WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1} ;
cqlsh>
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);
cqlsh> DESC KEYSPACE test_add_index;

CREATE KEYSPACE test_add_index WITH replication = {
  'class': 'SimpleStrategy',
  'replication_factor': '1'
};

USE test_add_index;

CREATE TABLE cf1 (
  a text,
  b text,
  c text,
  PRIMARY KEY (a)
) WITH
  bloom_filter_fp_chance=0.010000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  index_interval=128 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  populate_io_cache_on_flush='false' AND
  default_time_to_live=0 AND
  speculative_retry='NONE' AND
  memtable_flush_period_in_ms=0 AND
  compaction={'class': 'SizeTieredCompactionStrategy'} AND
  compression={'sstable_compression': 'LZ4Compressor'};

CREATE INDEX index1 ON cf1 (c);

cqlsh>
{code}

> 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)