New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DESCRIBE can't be used to describe user defined types #14170
Comments
This is because you are using generic describe (without specifying what you want to describe) and generic describe looks for(in order): keyspace, table, index. It doesn't check UDTs, UDFs nor UDAs. If you use |
Ah you're right, It's a bit unintuitive, I expected But we can also say that the user should just read the |
…scribe So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: scylladb#14170
…scribe So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: scylladb#14170
…scribe So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: scylladb#14170
…scribe So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: scylladb#14170
…scribe So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: scylladb#14170
…eric describe' from Michał Jadwiszczak So far generic describe (`DESC <name>`) followed Cassandra implementation and it only described keyspace/table/view/index. This commit adds UDT/UDF/UDA to generic describe. Fixes: #14170 Closes #14334 * github.com:scylladb/scylladb: docs:cql: add information about generic describe cql-pytest:test_describe: add test for generic UDT/UDF/UDA desc cql3:statements:describe_statement: include UDT/UDF/UDA in generic describe
Trying to
DESC
a UDT using cqlsh throws an error:'my_udt' not found in keyspace 'ks'
:It's possible to see information about the UDT by describing the whole keyspace:
So the code for describing a UDT is already there, but it isn't triggered when someone tries to
DESCRIBE
the type directly.Interestingly, it doesn't work on Cassandra as well.
\cc @Jadw1
The text was updated successfully, but these errors were encountered: