我正在尝试在 Cassandra CLI 版本 1.1.6 中创建一个列族,我不确定如何将主键指定为 movieid。
CREATE COLUMN FAMILY movies
WITH comparator = UTF8Type
AND key_validation_class=UTF8Type
AND column_metadata = [
{column_name: movieid, validation_class: UTF8Type}
{column_name: title, validation_class: UTF8Type}
{column_name: genres, validation_class: UTF8Type}];