You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Philip Thompson (JIRA)" <ji...@apache.org> on 2016/03/09 21:24:40 UTC

[jira] [Commented] (CASSANDRA-11331) Create Index IF NOT EXISTS throws error when index already exists

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

Philip Thompson commented on CASSANDRA-11331:
---------------------------------------------

This is not happening on 2.2.

> Create Index IF NOT EXISTS throws error when index already exists
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-11331
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11331
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Philip Thompson
>             Fix For: 3.0.x, 3.x
>
>
> While testing with trunk, I see that issuing the following queries throws an InvalidRequest, despite being valid.
> {code}
> CREATE KEYSPACE k WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}  AND durable_writes = true;
> USE k;
> CREATE TABLE k.t (
>     id int PRIMARY KEY,
>     v int,
>     v2 int,
>     v3 text
> );
> CREATE INDEX IF NOT EXISTS ON t (v2);
> CREATE INDEX IF NOT EXISTS ON t (v2);
> InvalidRequest: code=2200 [Invalid query] message="Index t_v2_idx_1 is a duplicate of existing index t_v2_idx"
> {code}
> The second {{CREATE INDEX IF NOT EXISTS}} should work fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)