[ 
https://issues.apache.org/jira/browse/CASSANDRA-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13692808#comment-13692808
 ] 

Aleksey Yeschenko commented on CASSANDRA-5697:
----------------------------------------------

The semicolon is optional. You are getting this error because cqlsh splits its 
statements internally. Using python-cql directly (or any other client), the 
semicolons will be accepted.

It's questionable whether or not messing with cqlsh internals just to allow the 
semicolons in BATCH is worth it, but I'll have a look later today.
                
> Semi-colons not Allowed in CQL3 Batch Statements
> ------------------------------------------------
>
>                 Key: CASSANDRA-5697
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5697
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.0
>         Environment: Mac OSX, cqlsh 3.0.2
>            Reporter: Russell Alexander Spitzer
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>              Labels: cql
>
> The documentation for BATCH statements declares that semicolons are required 
> between update operations. Currently including them results in an error 
> 'expecting K_APPLY'. To match the design specifications, semi-colons should 
> be allowed or optional. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to