【问题标题】:azure cosmos db issue in creating table创建表中的 azure cosmos db 问题
【发布时间】:2019-12-10 23:35:34
【问题描述】:

我正在尝试在 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)

当我通过仪表板运行此命令时,我收到此错误

"WITH 聚类顺序 BY (notification_date DESC) WITH cosmosdb_provisioned_throughput=400;: {"readyState":4,"responseText":"\"{\\"message\\":\\"line 15:382 no 输入 'WITH (...nt>,\\n entityactiontype int,\\n entityid 文本,\\n entityownerid 文本,\\n
entitytype text,\\n status int,\\n 查看状态 boolean,\\n PRIMARY KEY\\n (notifierid, notification_date))\\n WITH CLUSTERING ORDER BY (notification_date DESC) 与...)"

【问题讨论】:

    标签: c# cassandra azure-cosmosdb


    【解决方案1】:

    Cosmos DB 的 cassandra api 并非 100% 兼容。我的猜测是 cosmos db 不支持 WITH 子句。我们发现了一些其他异常情况,导致我们从 Cassandra API 切换到更强大的文档。

    【讨论】:

      猜你喜欢
      • 2021-12-01
      • 1970-01-01
      • 2017-12-09
      • 2020-12-22
      • 1970-01-01
      • 2018-06-20
      • 2018-10-28
      • 2018-04-10
      • 2018-06-17
      相关资源
      最近更新 更多