I have created a table as follows in Cassandra:
CREATE TABLE sp.status(
ams text,
load_start_time timestamp,
file_path text,
file_timestamp timestamp,
host text,
load_end_time timestamp,
records_ignored int,
records_imported int,
records_in_file int,
status text,
PRIMARY KEY (ams, load_start_time)
) WITH CLUSTERING ORDER BY (load_start_time DESC)
I want to select a row from a specific date. When I use the > operator everything works as expected. But if I use the = operator I get no data back.
SELECT * FROM sp.status WHERE ams = 'RRG' AND load_start_time='2016-01-20 10:10:27' allow filtering;
There is in the database a row with that value for load_start_time and it is returned if in the above query I replace = with > for load_start_time.
Can someone explain why would this be the case ?
I actually need this for a DELETE statement and there I cannot use range operators, only =.