[ 
https://issues.apache.org/jira/browse/CASSANDRA-9842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336284#comment-15336284
 ] 

Alex Petrov commented on CASSANDRA-9842:
----------------------------------------

As [CASSANDRA-10532] is merged now, I've updated the tests with conditional 
deletion (although only on {{NULL}} static columns), both with and without 
batch.

All branches are rebased:

|| ||2.1||2.2||3.0||trunk|
||code|[2.1|https://github.com/ifesdjeen/cassandra/tree/9842-2.1]|[2.2|https://github.com/ifesdjeen/cassandra/tree/9842-2.2]|[3.0|https://github.com/ifesdjeen/cassandra/tree/9842-3.0]|[trunk|https://github.com/ifesdjeen/cassandra/tree/9842-trunk]|
||utest|[2.1|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-2.1-testall/]|[2.2|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-2.2-testall/]|[3.0|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-3.0-testall/]|[trunk|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-trunk-testall/]|
||dtest|[2.1|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-2.1-dtest/]|[2.2|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-2.2-dtest/]|[3.0|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-3.0-dtest/]|[trunk|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-9842-trunk-dtest/]|

The test failures seem unrelated..
Note for committer: tests commits for {{2.1}} and {{2.2}} are different from 
ones to {{3.0}} and {{trunk}} (there's a subtle difference because of value 
being returned in {{2.x}} together with {{applied}} column) , and change commit 
itself is same for {{2.1}} and {{2.2}}, not required for {{3.0}} and {{trunk}}. 

> Inconsistent behavior for '= null' conditions on static columns
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-9842
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9842
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: cassandra-2.1.8 on Ubuntu 15.04
>            Reporter: Chandra Sekar
>            Assignee: Alex Petrov
>             Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x
>
>
> 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.
> h3. Table Definition
> {code}
> create table txtable(pcol bigint, ccol bigint, scol bigint static, ncol text, 
> primary key((pcol), ccol));
> {code}
> h3. Inserting row in non-existent partition and updating static column in one 
> LWT
> {code}
> 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
> {code}
> h3. Creating partition before LWT
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to