yugabyte/yugabyte-db

[YCQL] UDTs can be named set/map/list, but can't be referenced

Open

#1,005 创建于 2019年3月15日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C (1,003 fork)batch import
area/ycqlgood first issuekind/enhancementpriority/low

仓库指标

Star
 (8,229 star)
PR 合并指标
 (平均合并 17天 21小时) (30 天内合并 92 个 PR)

描述

Jira Link: DB-4694 UDTs can be named set/map/list/frozen (and tuple after #949), but can't be referenced e.g. during table creation.

Example:

YCQL:

cqlsh> CREATE TYPE k.map(a int);
cqlsh> CREATE TABLE k.test(p INT PRIMARY KEY , ct map);
SyntaxException: Query error: Invalid SQL Statement. syntax error, unexpected ')', expecting '<'
CREATE TABLE k.test(p INT PRIMARY KEY , ct map);
                                              ^
 (error -11)

Cassandra CQL:

cqlsh> CREATE TYPE k.map(a int);
cqlsh> CREATE TABLE k.test(p INT PRIMARY KEY , ct map);
-- (no error)

贡献者指南