cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6873) Static columns with IF NOT EXISTS don't always work as expected
Date Tue, 18 Mar 2014 20:27:42 GMT

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

Aleksey Yeschenko commented on CASSANDRA-6873:
----------------------------------------------

LGTM, +1

> 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)

Mime
View raw message