[
https://issues.apache.org/jira/browse/CASSANDRA-7604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072917#comment-14072917
]
Robert Stupp edited comment on CASSANDRA-7604 at 7/24/14 7:42 AM:
------------------------------------------------------------------
Also
* {{CREATE USER IF NOT EXISTS}}
* {{DROP USER IF EXISTS}}
Not sure (not implemented yet - CASSANDRA-7606) :
* {{CREATE TRIGGER IF NOT EXISTS}}
* {{DROP TRIGGER IF EXISTS}}
was (Author: snazy):
Also
* {{CREATE USER IF NOT EXISTS}}
* {{DROP USER IF EXISTS}}
Not sure (not implemented yet - CASSANDRA-7606) :
* {{CREATE USER IF NOT EXISTS}}
* {{DROP USER IF EXISTS}}
> Test coverage for conditional DDL statements
> --------------------------------------------
>
> Key: CASSANDRA-7604
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7604
> Project: Cassandra
> Issue Type: Test
> Components: Tests
> Reporter: Tyler Hobbs
> Assignee: Ryan McGuire
>
> We only have minimal test coverage of {{IF \[NOT\] EXISTS}} conditions for
> DDL statements. I think dtests are the right place to add those tests.
> We need to cover:
> * {{CREATE KEYSPACE IF NOT EXISTS}}
> * {{DROP KEYSPACE IF EXISTS}}
> * {{CREATE TABLE IF NOT EXISTS}}
> * {{DROP TABLE IF EXISTS}}
> * {{CREATE INDEX IF NOT EXISTS}}
> * {{DROP INDEX IF EXISTS}}
> * {{CREATE TYPE IF NOT EXISTS}}
> * {{DROP TYPE IF EXISTS}}
> The tests should also ensure that InvalidRequestExceptions are thrown if, for
> example, you try to drop an index from a keyspace that doesn't exist
> (regardless of whether {{IF EXISTS}} is used).
--
This message was sent by Atlassian JIRA
(v6.2#6252)