You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2013/09/10 13:11:53 UTC

[jira] [Resolved] (CASSANDRA-5993) Can't create CQL columns named 'desc'

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

Sylvain Lebresne resolved CASSANDRA-5993.
-----------------------------------------

    Resolution: Not A Problem

As described here: http://cassandra.apache.org/doc/cql3/CQL.html#appendixA, 'desc' is a reserved keyword of CQL. And as described a little before in that same document: http://cassandra.apache.org/doc/cql3/CQL.html#identifiers, you can use double-quotes if you really want to name a column that way (which probably won't be excessively convenient but is possible).
                
> Can't create CQL columns named 'desc'
> -------------------------------------
>
>                 Key: CASSANDRA-5993
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5993
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: David Semeria
>            Priority: Minor
>             Fix For: 2.0
>
>
> create table test ( id text primary key, desc text);
> Bad Request: line 1:41 mismatched input 'desc' expecting ')'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira