Search code examples
cassandracommentscassandra-3.0user-defined-types

Is it possible to write comment for UDT in cassandra?


In Cassandra, for tables we can write a comment as follows:

CREATE TABLE company.address( id int PRIMARY KEY, street text, ... ) WITH COMMENT = 'Table containing the address of company id - unique identifier of a company, street - street of the company';

But for UDT(user defined type) I can't find if there is a way for writing a comment where I want to provide a description for each field of UDT. Is that possible in Cassandra ?


Solution

  • Comments for columns are not possible in cassandra 3.x (latest available version).

    Jira Ticket for the same CASSANDRA-9836.

    As of now best bet is to use self explanatory column names.