我正在尝试在Azure Cosmos DB(Cassandra(中创建表。我的创建命令是
(
notifierid text,
notification_date timeuuid,
actorid text,
bucketid text,
categories set<int>,
entityactiontype int,
entityid text,
entityownerid text,
entitytype text,
status int,
viewedstatus boolean,
PRIMARY KEY
(notifierid, notification_date))
WITH CLUSTERING ORDER BY (notification_date DESC)
当我通过仪表板运行此命令时,我会得到此错误
"通过(notification_date desc(的聚类顺序 cosmosdb_provisioned_throughput = 400;: {" ReadyState":4," ResponseText":" " {\" Message \":\"第15行:382否 在输入'with(... nt>,\ n EntityActionType(的可行替代方案 int,\ n entityId文本,\ n entityownerid文本,\ n
entityType文本,\ n状态int,\ n查看 boolean,\ n primary键\ n(notifierid, notification_date((\ n带有聚类顺序(notification_date( desc(与...("
宇宙DB的Cassandra API与100%兼容。我的猜测是,宇宙DB不支持该条款。我们发现其他一些异常使我们从Cassandra API切换到更强大的文档。