Christoph Werres created CASSANDRA-6708:
-------------------------------------------

             Summary: Dropping non existent table using IF EXISTS throws 
Exception
                 Key: CASSANDRA-6708
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6708
             Project: Cassandra
          Issue Type: Bug
          Components: API
         Environment: Ubuntu 12.0.4 with 8+ GB RAM and 40GB hard disk for data 
directory.
            Reporter: Christoph Werres
            Priority: Minor


When using cqlsh console and dropping a non existent table, an exception is 
thrown although the IF EXISTS condition was given. Also when using the Java 
driver, an InvalidQueryException is thrown in such a situation. This is very 
misleading in applications that suppose such requests to be valid. In earlier 
versions it was a no-op call in that case. This is cqlsh output using Cassandra 
2.0.5 version:

{noformat}
[cqlsh 4.4.4 | Cassandra 2-0-5 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
cqlsh> USE mwerrch;
cqlsh:mwerrch> DESC TABLES;
cql3test
cqlsh:mwerrch> DROP TABLE IF EXISTS noexist;
Bad Request: unconfigured columnfamily noexist
cqlsh:mwerrch>
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to