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)