cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords
Date Fri, 02 Mar 2018 10:50:00 GMT


Benjamin Lerer updated CASSANDRA-14205:
    Resolution: Fixed
        Status: Resolved  (was: Ready to Commit)

> ReservedKeywords class is missing some reserved CQL keywords
> ------------------------------------------------------------
>                 Key: CASSANDRA-14205
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Andrés de la Peña
>            Assignee: Andrés de la Peña
>            Priority: Major
>             Fix For: 3.11.x, 4.x
> The CQL keywords {{DEFAULT}}, {{UNSET}}, {{MBEAN}} and {{MBEANS}} (introduced by CASSANDRA-11424
and CASSANDRA-10091) are neither considered [unreserved keywords|]
by the ANTLR parser, nor included in the [{{ReservedKeywords}}|]
> The current parser behaviour is considering them as reserved keywords, in the sense that
they can't be used as keyspace/table/column names, which seems right:
> {code:java}
> cassandra@cqlsh> CREATE KEYSPACE unset WITH replication = {'class': 'SimpleStrategy',
'replication_factor': 1};
> SyntaxException: line 1:16 no viable alternative at input 'unset' (CREATE KEYSPACE [unset]...)
> {code}
> I think we should keep considering these keywords as reserved and add them to {{ReservedKeywords}}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message