You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cassandra CQL allows user-defined types to refer to other user-defined types (only frozen though), YCQL should allow the same thing.
CQL:
cqlsh> CREATE TYPE k.t2(i int, t k.t1);
InvalidRequest: Error from server: code=2200 [Invalid query] message="A user type cannot contain non-frozen UDTs"
cqlsh> CREATE TYPE k.t2(i int, t frozen<k.t1>);
# Works fine
YCQL:
cqlsh> CREATE TYPE k.t2(i int, t k.t1);
SyntaxException: Feature Not Supported. UDT field types cannot refer to other user-defined types
CREATE TYPE k.t2(i int, t k.t1);
^
(error -14)
cqlsh> CREATE TYPE k.t2(i int, t frozen<k.t1>);
SyntaxException: Feature Not Supported. UDT field types cannot refer to other user-defined types
CREATE TYPE k.t2(i int, t frozen<k.t1>);
^
(error -14)
The text was updated successfully, but these errors were encountered:
Cassandra CQL allows user-defined types to refer to other user-defined types (only
frozen
though), YCQL should allow the same thing.CQL:
YCQL:
The text was updated successfully, but these errors were encountered: