You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeremy Hanna (JIRA)" <ji...@apache.org> on 2018/05/11 15:00:01 UTC
[jira] [Updated] (CASSANDRA-12690) LWT: Inserting Subset of columns
returns all columns
[ https://issues.apache.org/jira/browse/CASSANDRA-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Hanna updated CASSANDRA-12690:
-------------------------------------
Labels: LWT transaction transactions (was: transaction transactions)
> LWT: Inserting Subset of columns returns all columns
> ----------------------------------------------------
>
> Key: CASSANDRA-12690
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12690
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL
> Environment: 3.x
> Reporter: Highstead
> Priority: Minor
> Labels: LWT, transaction, transactions
>
> See: https://github.com/gocql/gocql/issues/792#issuecomment-248983669
> When inserting a subset of the table columns with the use of light weight transactions the cassandra result returns a full set of unordered cassandra column values.
> SETUP:
> ```
> CREATE TABLE IF NOT EXISTS test.inserttest(
> key bigint,
> session_token text,
> foo text,
> bar text,
> PRIMARY KEY(key, event_date, session_token);
> INSERT INTO test.inserttest(key, session_token, foo) VALUES (1, 'myToken', 'baz') IF NOT EXISTS;
> ```
> `insert into test.inserttest(key, session_token, foo) VALUES (1, 'myToken', 'bez') IF NOT EXISTS;`
> Expected result: Returns False, 1, myToken, baz
> Actual result: Returns true and all column values.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org