Open jamesruan opened 6 years ago
What is your key defintion? I would expect it to be 'time' and 'source' at least.
Your delete statement needs to cover the entire key
What is the CREATE TABLE
you used to create the table
Sorry to reply late.
I'm no longer having access to the server. So I can not provide more info for this case. As far as I remember the key is time+type
, indexed further by source subtype
.
If in case that the delete
has not cover the entire key, why would the select
be successful?
I'm using a ts 1.5.2. Following code is running in riak-expoler. It has similar output in riak-shell.
select * from logv2 where time > '2018-03-15 00:00' and time < '2018-04-15 00:00' and type = 'log'
delete from logv2 where time = 1522235100839 and type = 'log'
delete from logv2 where time > '2018-03-15 00:00' and time < '2018-04-15 00:00' and type = 'log'
describe logv2