Reputation: 2440
i want to execute this query,
SELECT uuid,data,name,time,tracker,type,userid FROM standardevents0805 where time > '2014/08/04 00:00:00'; (i tried by putting in double quotes also "2014/08/04 00:00:00")
but it is not working properly.
below is the description of my column-family,
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);
Upvotes: 2
Views: 132
Reputation: 20021
You've put a lookup index on time, but such indexes (at the time of writing) allow only equals operations. Range queries can be performed only on clustering keys.
Upvotes: 2