在下表中, phone_numbers 列可以容纳的最大大小是多少?
CREATE TABLE d2.employee (
id int PRIMARY KEY,
doj timestamp,
name text,
phone_numbers map<text, text>
)
答案 0 :(得分:2)
Cassandra中的集合类型在内部数据模型中表示为一组不同的单元格:phone_numbers列的每个键都有一个单元格。因此它们不是普通列,而是一组列。您可以通过在cassandra-cli中执行以下命令来验证这一点(1001代表有效的员工ID):
use d2;
get employee[1001];
好的答案是你的观点2.