0
分區鍵我有一個表中的Foo卡桑德拉與4列foo_id BIGINT,日期日期時間,REF_ID BIGINT,int類型查詢分鐘基於時間範圍(聚集鍵)
這裏的分區鍵是foo_id。聚集鍵是日期遞減,REF_ID和類型
我想寫一個CSQL查詢這是SQL的下方
select min(foo_id) from foo where date >= '2016-04-01 00:00:00+0000'
相當於我寫了下面CSQL
select foo_id from foo where
foo_id IN (-9223372036854775808, 9223372036854775807)
and date >= '2016-04-01 00:00:00+0000';
但這返回空結果。
然後我試圖
select foo_id from foo where
token(foo_id) > -9223372036854775808
and token(foo_id) < 9223372036854775807
and date >= '2016-04-01 00:00:00+0000';
但這會導致錯誤
Unable to execute CSQL Script on 'Cassandra'. Cannot execute this query
as it might involve data filtering and thus may have unpredictable
performance. If you want to execute this query despite performance
unpredictability, use ALLOW FILTERING.
我不想使用允許過濾的。但我希望在指定日期開始時的foo_id的最小值。