[ 
https://issues.apache.org/jira/browse/CASSANDRA-9565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Lerer updated CASSANDRA-9565:
--------------------------------------
    Attachment: 9565-2.1.txt
                9565-2.0.txt

The patch fixes the Cql.g grammar and add Unit tests to verify the behaviour.


* [unit tests for 
2.0|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-9565-testall/lastCompletedBuild/testReport/]
* [DTests for 
2.0|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-9565-dtest/lastCompletedBuild/testReport/]
* [unit tests for 
2.1|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-9565-2.1-testall/lastCompletedBuild/testReport/]
* [DTests for 
2.1|http://cassci.datastax.com/view/Dev/view/blerer/job/blerer-9565-2.1-dtest/lastCompletedBuild/testReport/]

> 'WITH WITH' in alter keyspace statements causes NPE
> ---------------------------------------------------
>
>                 Key: CASSANDRA-9565
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9565
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jim Witschey
>            Assignee: Benjamin Lerer
>         Attachments: 9565-2.0.txt, 9565-2.1.txt
>
>
> Running any of these statements:
> {code}
> ALTER KEYSPACE WITH WITH DURABLE_WRITES = true;
> ALTER KEYSPACE ks WITH WITH DURABLE_WRITES = true;
> CREATE KEYSPACE WITH WITH DURABLE_WRITES = true;
> CREATE KEYSPACE ks WITH WITH DURABLE_WRITES = true;
> {code}
> Fails, raising a {{SyntaxException}} and giving a {{NullPointerException}} as 
> the reason for failure. This happens in all versions I tried, including 
> 2.0.15, 2.1.5, and HEAD on cassandra-2.0, cassandra-2.1, cassandra-2.2, and 
> trunk.
> EDIT: A dtest is 
> [here|https://github.com/mambocab/cassandra-dtest/commit/da3785e25cce505183e0ebc8dd21340f3a3ea3a4#diff-dcb0fc3aff201fd7eeea6cbf1181f921R5300],
>  but it would probably be more appropriate to test with unit tests.



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

Reply via email to