You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2016/04/18 14:44:25 UTC
[jira] [Commented] (CASSANDRA-11004) LWT results '[applied]' column
name collision
[ https://issues.apache.org/jira/browse/CASSANDRA-11004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245593#comment-15245593 ]
Alex Petrov commented on CASSANDRA-11004:
-----------------------------------------
It already works this way {{trunk}}. {{3.4}} had some artifacts (the last {{null}} column was not displayed at all). But on {{trunk}} it works as expected:
{code}
[applied] | k | [applied]
-----------+---+-----------
3 | 2 | null
{code}
> LWT results '[applied]' column name collision
> ---------------------------------------------
>
> Key: CASSANDRA-11004
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11004
> Project: Cassandra
> Issue Type: Bug
> Reporter: Adam Holmberg
> Assignee: Alex Petrov
> Priority: Minor
> Fix For: 4.x
>
>
> LWT requests return a not-well-documented single row result with a boolean {{\[applied]}} column and optional column states.
> If the table happens to have a column named {{\[applied]}}, this causes a name collision. There is no error, but the {{\[applied]}} flag is not available.
> {code}
> cassandra@cqlsh:test> CREATE TABLE test (k int PRIMARY KEY , "[applied]" int);
> cassandra@cqlsh:test> INSERT INTO test (k, "[applied]") VALUES (2, 3) IF NOT EXISTS ;
> [applied]
> -----------
> True
> cassandra@cqlsh:test> INSERT INTO test (k, "[applied]") VALUES (2, 3) IF NOT EXISTS ;
> [applied] | k
> -----------+---
> 3 | 2
> {code}
> I doubt this comes up much (at all) in practice, but thought I'd mention it.
> One alternative approach might be to add a LWT result type ([flag|https://github.com/apache/cassandra/blob/cassandra-3.0/doc/native_protocol_v4.spec#L518-L522]) that segregates the "applied" flag information optional row results.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)