【发布时间】:2018-07-15 22:19:42
【问题描述】:
无论我在UDT中使用或不使用frozen关键字,它都在更新记录。
我有表用户:
CREATE TABLE demokeyspace.user (
userid text PRIMARY KEY,
address1 frozen<address>,
password text,
uname text
)
和地址类型:
CREATE TYPE demokeyspace.address (
street text,
city text,
zip_code int
);
正在将 street:'updated street' 和 city 和 zip_code 更新为 null
根据 Cassandra,如果声明为 FROZEN,它不允许更新 UDT 值。
有人可以帮我吗?
【问题讨论】:
-
我正在使用 [cqlsh 5.0.1 |卡桑德拉 3.11.2 | CQL 规范 3.4.4 |原生协议 v4]
标签: cassandra