I created table in Cassandra database name as information_tbl. query:
CREATE TABLE IF NOT EXISTS Information_tbl (id uuid ,
cam_id varchar,
camzone varchar,
msg varchar,
fltr int,
time_stamp int,
PRIMARY KEY (fltr,time_stamp)
)WITH CLUSTERING ORDER BY (time_stamp DESC);
when I execute update query, it show error :
Query 1:
UPDATE information_tbl SET camzone = 'D' WHERE id = c6263cac-450f-4105-a2cc-3705ec741a96;
Error:
message="Some partition key parts are missing: fltr"
Query 2:
UPDATE information_tbl SET camzone = 'D' WHERE fltr=1 AND id = c6263cac-450f-4105-a2cc-3705ec741a96;
Error:
message="Some clustering keys are missing: time_stamp"
Query 3:
UPDATE information_tbl SET camzone = 'D' WHERE fltr=1 AND time_stamp = 1581946832 AND id = c6263cac-450f-4105-a2cc-3705ec741a96;
Error:
message="Non PRIMARY KEY columns found in where clause: id "
Any suggestions.