Yifan Cai created CASSANDRA-16398:
-------------------------------------

             Summary: CQL fails to parse "access" and "datacenters" in DDL 
statements
                 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to