yugabyte/yugabyte-db

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

Open

#1005 aperta il 15 mar 2019

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C (1003 fork)batch import
area/ycqlgood first issuekind/enhancementpriority/low

Metriche repository

Star
 (8229 star)
Metriche merge PR
 (Merge medio 17g 21h) (92 PR mergiate in 30 g)

Descrizione

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)

Guida contributor