【问题标题】:Insert query failing in cassandra when using now()使用 now() 时在 cassandra 中插入查询失败
【发布时间】:2013-10-13 18:14:10
【问题描述】:

INSERT INTO testtable (id, user_name, gender, rank) VALUES (now(), 'test_user', 'MALE', 2) ;

错误请求:第 1:60 行在输入“现在”时没有可行的替代方案

在尝试将 timeuuid 插入 cassandra 中的表时,有人可以帮助解决上述错误消息。

【问题讨论】:

  • 你运行的是哪个 Cassandra 版本?
  • @Richard,我正在使用 cassandra 1.1.12

标签: cassandra


【解决方案1】:

您需要升级 Cassandra - 在 Cassandra 1.2.2 中添加了 timeuuid 功能。

【讨论】:

  • 你能告诉我如何使用 hector api 在主键是(id,user_name)的地方插入一行
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-11-23
  • 2016-09-03
  • 2014-03-15
  • 2013-02-25
  • 2016-06-21
  • 2014-11-01
相关资源
最近更新 更多