You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pedro Gordo (Jira)" <ji...@apache.org> on 2025/02/05 17:11:00 UTC
[jira] [Comment Edited] (CASSANDRA-19956) Do not fail cqlsh when empty statement is parsed
[ https://issues.apache.org/jira/browse/CASSANDRA-19956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924166#comment-17924166 ]
Pedro Gordo edited comment on CASSANDRA-19956 at 2/5/25 5:10 PM:
-----------------------------------------------------------------
Submitted the changes [~bschoeni]
Branch: https://github.com/sedulam/cassandra/tree/CASSANDRA-19956
was (Author: pedro_gordo):
Submitted the changes [~bschoeni]
> Do not fail cqlsh when empty statement is parsed
> ------------------------------------------------
>
> Key: CASSANDRA-19956
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19956
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: CQL/Interpreter
> Reporter: Stefan Miklosovic
> Assignee: Pedro Gordo
> Priority: Low
> Fix For: 5.x
>
> Attachments: cqlshlib_tests.txt
>
>
> This really irritates me.
> {code:java}
> cqlsh> select * from ks.tb;;
> ... the result ...
> SyntaxException: line 1:0 no viable alternative at input ';' ([;]){code}
> The second ";" should not matter. It is same way e.g. in Java. When I do
> {code:java}
> int a = 5;;;;;;;; {code}
> This is just perfectly legal. Indeed, more than one ";" is redundant, but it still compiles.
> We should do same for CQL.
> {code:java}
> cqlsh> select * from ks.tb;;;;;;;;; {code}
> This should not fail.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org