[ 
https://issues.apache.org/jira/browse/CASSANDRA-6873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-6873:
----------------------------------------

    Attachment: 6873.txt

Patch attached to fix this and clean somewhat the relevant logic. I've 
basically [pushed the test of the 
description|https://github.com/riptano/cassandra-dtest/commit/c3644ca97f6c240137ed9791b84a0bc424f21626]
 to dtest.

> Static columns with IF NOT EXISTS don't always work as expected
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-6873
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6873
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 2.0.7
>
>         Attachments: 6873.txt
>
>
> Given:
> {noformat}
> CREATE TABLE test (
>     id int,
>     k text,
>     version int static,
>     v int,
>     PRIMARY KEY (id, k)
> )
> INSERT INTO test(id, k, v) VALUES (1, 'foo', 'foo')
> {noformat}
> the following conditional update should not apply:
> {noformat}
> INSERT INTO test(id, k, version) VALUES (1, 'foo', 1) IF NOT EXISTS
> {noformat}
> since said query involves the clustering column and the CQL row with said 
> clustering column already exists. It does currently apply however.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to