You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2021/02/01 22:08:00 UTC

[jira] [Updated] (CASSANDRA-16398) Add access and datacenters to unreserved keywords

     [ https://issues.apache.org/jira/browse/CASSANDRA-16398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yifan Cai updated CASSANDRA-16398:
----------------------------------
    Summary: Add access and datacenters to unreserved keywords  (was: CQL fails to parse "access" and "datacenters" in DDL statements)

> Add access and datacenters to unreserved keywords
> -------------------------------------------------
>
>                 Key: CASSANDRA-16398
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16398
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter, CQL/Syntax
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>             Fix For: 4.0-beta5
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The terms, "ACCESS TO ALL DATACENTERS" (for role control,) are introduced in CASSANDRA-13985. 
> They are not marked as unreserved keywords. So in the non-role related DDL statements, for example, create table statement, the parser fails.
>  
> cqlsh> CREATE TABLE test.test_access ( foo text PRIMARY KEY, access text, bar text);
> SyntaxException: line 1:54 mismatched input 'access' expecting ')' (... foo text PRIMARY KEY, [access]...)
>  
> cqlsh> CREATE TABLE test.test_datacenters ( foo text PRIMARY KEY, datacenters text, bar text);
> SyntaxException: line 1:59 mismatched input 'datacenters' expecting ')' (... foo text PRIMARY KEY, [datacenters]...)
>  
> Since ACCESS and DATACENTERS are only applicable to the role defining statements. We should mark them as unreserved keywords in order to allow to use them in the DDL statement. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org