Cassandra:使用包含大量用户定义类型的表删除键空间

Cassandra: dropping keyspace with tables containing numerous user defined types

我想删除一个键空间,它也可以安全地删除所有包含的表的各种用户定义类型。

CQL Cassandra 的官方文档指出:

"Immediate, irreversible removal of the keyspace, including objects such as tables, functions, and data it contains. "

但是,从文档中我无法确定它是否还突出显示了用户定义类型的删除。有人可以证实这一点吗?

DROP KEYSPACE 命令删除键空间和属于该键空间的所有对象:数据、tables/colum 系列、用户定义类型、索引。

在实际删除之前,拍摄密钥空间的快照。这可以是 enabled/disabled 使用 cassandra.yaml 中的 auto_snapshot 参数。此参数的默认值为 true。