cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-6873) Static columns with IF NOT EXISTS don't always work as expected
Date Mon, 17 Mar 2014 09:26:42 GMT
Sylvain Lebresne created CASSANDRA-6873:
-------------------------------------------

             Summary: 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


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