[
https://issues.apache.org/jira/browse/CASSANDRA-8262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14199260#comment-14199260
]
Philip Thompson commented on CASSANDRA-8262:
--------------------------------------------
If {{cql_parse}} does not succeed and an {{IndexError}} is thrown, then
{{parse_for_table_meta}} will return None. If there are any results, then this
will not affect the output. Queries without grammars defined will still
succeed. With the v1 patch, if a query has no results, an exception will be
thrown. I will attempt to remedy that in a v2.
> parse_for_table_meta errors out on queries with undefined grammars
> ------------------------------------------------------------------
>
> Key: CASSANDRA-8262
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8262
> Project: Cassandra
> Issue Type: Bug
> Reporter: Philip Thompson
> Assignee: Philip Thompson
> Labels: cqlsh
> Fix For: 2.1.2
>
> Attachments: cassandra-2.1-8262-1.txt
>
>
> CASSANDRA-6910 introduced changes to the cqlsh function
> {{parse_for_table_meta}} that cause an error to be thrown whenever a query
> does not have its grammar defined in cql3handling.py. However, this is
> affecting queries that are legitimate cql syntax and are accepted by
> Cassandra, but aren't defined in cqlsh.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)