我有一個coulmn家庭如下卡桑德拉1.2:卡桑德拉where子句.could沒有找到合適的行
time | class_name | level_log | message | thread_name
-----------------+-----------------------------+-----------+---------------+-------------
121118135945759 | ir.apk.tm.test.LoggerSimple | DEBUG | This is DEBUG | main
121118135947310 | ir.apk.tm.test.LoggerSimple | ERROR | This is ERROR | main
121118135947855 | ir.apk.tm.test.LoggerSimple | WARN | This is WARN | main
121118135946221 | ir.apk.tm.test.LoggerSimple | DEBUG | This is DEBUG | main
121118135951461 | ir.apk.tm.test.LoggerSimple | WARN | This is WARN | main
當我使用這個查詢:
SELECT * FROM LogTM WHERE token(time) > token(0);
我什麼也沒得到!但正如你所看到的所有時間值都大於零!
這是CF模式:
CREATE TABLE logtm(
time bigint PRIMARY KEY ,
level_log text ,
thread_name text ,
class_name text ,
msg text
);
任何機構可以幫助?
謝謝:)
發佈您的架構以及您正在使用的分區器。 – Theo
我添加架構以發佈 – zsh
爲什麼使用令牌?如果你用令牌散列0,那麼輸出不會是0. –