You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Norbert Schultz (Jira)" <ji...@apache.org> on 2021/05/05 14:51:00 UTC
[jira] [Created] (CASSANDRA-16656) Assertion Error on invalid ALTER
TABLE Command
Norbert Schultz created CASSANDRA-16656:
-------------------------------------------
Summary: Assertion Error on invalid ALTER TABLE Command
Key: CASSANDRA-16656
URL: https://issues.apache.org/jira/browse/CASSANDRA-16656
Project: Cassandra
Issue Type: Bug
Components: CQL/Syntax
Reporter: Norbert Schultz
If there is an invalid ALTER TABLE statement (extra comma), then Cassandra responds with an assertion error.
This happens on 3.11.10 but not on 4.0-rc1
This statement fails:
{code:java}
> cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.10 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh> CREATE KEYSPACE foo WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
cqlsh> use foo;
cqlsh:foo> create table test(id INT, PRIMARY KEY(id));
cqlsh:foo> alter table test ADD (x INT, y INT,);
ServerError: java.lang.AssertionError
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org