You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "ZhaoYang (JIRA)" <ji...@apache.org> on 2017/08/24 12:48:00 UTC

[jira] [Resolved] (CASSANDRA-13784) mismatched input 'default' expecting for CREATE TABLE

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

ZhaoYang resolved CASSANDRA-13784.
----------------------------------
    Resolution: Not A Problem

{{default}} was added as keyword in CASSANDRA-11424. Close it as not a problem

> mismatched input 'default' expecting for CREATE TABLE
> -----------------------------------------------------
>
>                 Key: CASSANDRA-13784
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13784
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: {code}
> [root@localhost config]# cat /etc/os-release
> NAME="CentOS Linux"
> VERSION="7 (Core)"
> ID="centos"
> ID_LIKE="rhel fedora"
> VERSION_ID="7"
> PRETTY_NAME="CentOS Linux 7 (Core)"
> ANSI_COLOR="0;31"
> CPE_NAME="cpe:/o:centos:centos:7"
> HOME_URL="https://www.centos.org/"
> BUG_REPORT_URL="https://bugs.centos.org/"
> CENTOS_MANTISBT_PROJECT="CentOS-7"
> CENTOS_MANTISBT_PROJECT_VERSION="7"
> REDHAT_SUPPORT_PRODUCT="centos"
> REDHAT_SUPPORT_PRODUCT_VERSION="7"
> [root@localhost config]# rpm -qa | grep cassandra
> cassandra-3.11.0-1.noarch
> [root@localhost config]# cassandra -v
> 3.11.0
> {code}
>            Reporter: timur
>
> Got following error for table create if column name is "default" on 3.11. If I change column name for  example to "defaults" table successfully creates.
> For 3.9 version table with "default" column name successfully creates.  
> {code:sql}
> cqlsh:api_production> CREATE TABLE tasks (id uuid PRIMARY KEY, default boolean, name text, tenant_id uuid) ;
> SyntaxException: line 1:41 mismatched input 'default' expecting ')' (...(id uuid PRIMARY KEY, [default]...)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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