Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
cassandra-2.1.8 on Ubuntu 15.04
-
Normal
Description
Both inserting a row (in a non-existent partition) and updating a static column in the same LWT fails. Creating the partition before performing the LWT works.
Table Definition
create table txtable(pcol bigint, ccol bigint, scol bigint static, ncol text, primary key((pcol), ccol));
Inserting row in non-existent partition and updating static column in one LWT
begin batch insert into txtable (pcol, ccol, ncol) values (1, 1, 'A'); update txtable set scol = 1 where pcol = 1 if scol = null; apply batch; [applied] ----------- False
Creating partition before LWT
insert into txtable (pcol, scol) values (1, null) if not exists; begin batch insert into txtable (pcol, ccol, ncol) values (1, 1, 'A'); update txtable set scol = 1 where pcol = 1 if scol = null; apply batch; [applied] ----------- True
Attachments
Attachments
Issue Links
- depends upon
-
CASSANDRA-10532 Allow LWT operation on static column with only partition keys
- Resolved