yugabyte/yugabyte-db

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

Open

#1,005 opened on 2019年3月15日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)C (1,003 forks)batch import
area/ycqlgood first issuekind/enhancementpriority/low

Repository metrics

Stars
 (8,229 stars)
PR merge metrics
 (平均マージ 17d 21h) (30d で 92 merged PRs)

説明

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)

コントリビューターガイド