CREATE TABLE mytable ( a int, b int, s int static, d text, PRIMARY KEY (a, b) )
BEGIN BATCH INSERT INTO mytable (a, b, d) values (7, 7, 'a') UPDATE mytable SET s = 7 WHERE a = 7 IF s = NULL; APPLY BATCH
table has partition key as a and clustering key as b but in the update statement only partition key is provided and above batch returns :
[applied] ----------- True
I was just wondering how only mentioning partition key in update command it is not throwing an error , when primary key has both partition as well clustering key.