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

Pavel Yaskevich commented on CASSANDRA-3865:
--------------------------------------------

I think that Dave's patch is one part of it, another would be to change 
"Command not found" to "Error in the command" and add information from 
RecognitionException (which NoViableAltException extends) to were recognition 
error have actually happend.
                
> Cassandra-cli returns 'command not found' instead of syntax error
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3865
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3865
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: DSE 1.0.5
>            Reporter: Eric Lubow
>            Assignee: Dave Brosius
>            Priority: Trivial
>              Labels: cassandra-cli
>             Fix For: 1.0.11, 1.1.1
>
>         Attachments: parse_doubles_better.txt
>
>
> When creating a column family from the output of 'show schema' with an index, 
> there is a trailing comma after "index_type: 0,"  The return from this is a 
> 'command not found'  This is misleading because the command is found, there 
> is just a syntax error.
> 'Command not found: `create column family $cfname ...`

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to