You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pierre Laporte (JIRA)" <ji...@apache.org> on 2014/11/21 15:01:33 UTC

[jira] [Created] (CASSANDRA-8355) NPE when passing wrong argument in ALTER TABLE statement

Pierre Laporte created CASSANDRA-8355:
-----------------------------------------

             Summary: NPE when passing wrong argument in ALTER TABLE statement
                 Key: CASSANDRA-8355
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8355
             Project: Cassandra
          Issue Type: Bug
         Environment: Cassandra 2.1.2
            Reporter: Pierre Laporte
            Priority: Minor


When I tried to change the caching strategy of a table, I provided a wrong argument {{'rows_per_partition' : ALL}} with unquoted ALL. Cassandra returned a SyntaxError, which is good, but it seems it was because of a NullPointerException.

*Howto*
{code}
CREATE TABLE foo (k int primary key);
ALTER TABLE foo WITH caching = {'keys' : 'all', 'rows_per_partition' : ALL};
{code}

*Output*
{code}
<ErrorMessage code=2000 [Syntax error in CQL query] message="Failed parsing statement: [ALTER TABLE foo WITH caching = {'keys' : 'all', 'rows_per_partition' : ALL};] reason: NullPointerException null">
{code}





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