Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90BF710F9F for ; Fri, 11 Oct 2013 23:00:44 +0000 (UTC) Received: (qmail 86058 invoked by uid 500); 11 Oct 2013 23:00:44 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 86036 invoked by uid 500); 11 Oct 2013 23:00:44 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 86027 invoked by uid 99); 11 Oct 2013 23:00:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 23:00:44 +0000 Date: Fri, 11 Oct 2013 23:00:44 +0000 (UTC) From: "Ben Sykes (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6186) Can't add index with a name prefixed with 'index' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)