是否可以在 cassandra 中为 UDT 写评论?
Is it possible to write comment for UDT in cassandra?
在Cassandra中,对于表我们可以这样写注释:
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';
但是对于 UDT(用户定义的类型),我找不到是否可以在我想为 UDT 的每个字段提供描述的地方编写注释。这在 Cassandra 中可能吗?
在 cassandra 3.x(最新可用版本)中无法对列进行评论。
相同 CASSANDRA-9836 的 Jira 票证。
目前最好的办法是使用一目了然的列名。
在Cassandra中,对于表我们可以这样写注释:
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';
但是对于 UDT(用户定义的类型),我找不到是否可以在我想为 UDT 的每个字段提供描述的地方编写注释。这在 Cassandra 中可能吗?
在 cassandra 3.x(最新可用版本)中无法对列进行评论。
相同 CASSANDRA-9836 的 Jira 票证。
目前最好的办法是使用一目了然的列名。