yugabyte/yugabyte-db

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

Aberta

#1.005 aberto em 15 de mar. de 2019

 (1 comentário) (0 reação) (0 responsável)C (1.003 forks)batch import
area/ycqlgood first issuekind/enhancementpriority/low

Métricas do repositório

Stars
 (8.229 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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)

Guia do colaborador