我想执行此查询,
SELECT uuid,data,name,time,tracker,type,userid FROM standardevents0805 其中时间> ' 2014/08/04 00:00:00&#39 ;; (我也尝试使用双引号" 2014/08/04 00:00:00")
但它无法正常工作。
下面是我的列族的描述,
CREATE TABLE standardevents0805 (
uuid timeuuid PRIMARY KEY,
data text,
name text,
time timestamp,
tracker text,
type text,
userid text
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
read_repair_chance=0.100000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'SnappyCompressor'};
CREATE INDEX time_in ON standardevents0805 (time);
CREATE INDEX userid_in ON standardevents0805 (userid);
答案 0 :(得分:2)
您已按时间设置查找索引,但此类索引(在撰写本文时)仅允许等于操作。范围查询只能在群集密钥上执行。