[jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords

2019-07-08 Thread Michael Shuler (JIRA)


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

Michael Shuler updated CASSANDRA-14205:
---
Fix Version/s: (was: 3.11.x)
   (was: 4.x)
   3.11.2
   4.0

> ReservedKeywords class is missing some reserved CQL keywords
> 
>
> Key: CASSANDRA-14205
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14205
> Project: Cassandra
>  Issue Type: Bug
>  Components: Legacy/CQL
>Reporter: Andrés de la Peña
>Assignee: Andrés de la Peña
>Priority: Normal
> Fix For: 3.11.2, 4.0
>
>
> The CQL keywords {{DEFAULT}}, {{UNSET}}, {{MBEAN}} and {{MBEANS}} (introduced 
> by CASSANDRA-11424 and CASSANDRA-10091) are neither considered [unreserved 
> keywords|https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L1788-L1846]
>  by the ANTLR parser, nor included in the 
> [{{ReservedKeywords}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/ReservedKeywords.java]
>  class.
> 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}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords

2018-03-02 Thread Benjamin Lerer (JIRA)

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

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: https://issues.apache.org/jira/browse/CASSANDRA-14205
> 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|https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L1788-L1846]
>  by the ANTLR parser, nor included in the 
> [{{ReservedKeywords}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/ReservedKeywords.java]
>  class.
> 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}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords

2018-02-01 Thread Benjamin Lerer (JIRA)

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

Benjamin Lerer updated CASSANDRA-14205:
---
Status: Ready to Commit  (was: Patch Available)

> ReservedKeywords class is missing some reserved CQL keywords
> 
>
> Key: CASSANDRA-14205
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14205
> 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|https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L1788-L1846]
>  by the ANTLR parser, nor included in the 
> [{{ReservedKeywords}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/ReservedKeywords.java]
>  class.
> 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}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords

2018-02-01 Thread Benjamin Lerer (JIRA)

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

Benjamin Lerer updated CASSANDRA-14205:
---
Reviewer: Benjamin Lerer

> ReservedKeywords class is missing some reserved CQL keywords
> 
>
> Key: CASSANDRA-14205
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14205
> 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|https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L1788-L1846]
>  by the ANTLR parser, nor included in the 
> [{{ReservedKeywords}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/ReservedKeywords.java]
>  class.
> 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}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Updated] (CASSANDRA-14205) ReservedKeywords class is missing some reserved CQL keywords

2018-01-31 Thread JIRA

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

Andrés de la Peña updated CASSANDRA-14205:
--
Status: Patch Available  (was: Open)

> ReservedKeywords class is missing some reserved CQL keywords
> 
>
> Key: CASSANDRA-14205
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14205
> 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|https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L1788-L1846]
>  by the ANTLR parser, nor included in the 
> [{{ReservedKeywords}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/ReservedKeywords.java]
>  class.
> 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}} class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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