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] [Updated] (CASSANDRA-6623) Null in a cell caused by expired TTL does not work with IF clause (in CQL3)
Date Wed, 29 Jan 2014 17:58:10 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-6623:
----------------------------------------

    Attachment: 6623.txt

Attaching patch that fetch the full CQL row for CAS as we do for normal selects. The patch
did abstract a bit the conditions in SP.cas() so that we can deal with the details of thrift
and CQL separatly, which I think is a lot cleaner anyway and is actually needed to lift a
few of the current limitation of the current patch on CASSANDRA-6561.

I'll note that the patch preserves the current behavior that a 'UPDATE IF' implicitely check
for the row existence, even if the conditions are all testing for {{null}}. As said above,
I don't know if that is the actual semantic we want to preserve or if we want to change it.


> Null in a cell caused by expired TTL does not work with IF clause (in CQL3)
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6623
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6623
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>         Environment: One cluster with two nodes on a Linux and a Windows system. cqlsh
4.1.0 | Cassandra 2.0.4 | CQL spec 3.1.1 | Thrift protocol 19.39.0. CQL3 Column Family
>            Reporter: Csaba Seres
>            Priority: Minor
>             Fix For: 2.0.4
>
>         Attachments: 6623.txt
>
>
> IF onecell=null clause does not work if the onecell has got its null value from an expired
TTL. If onecell is updated with null value (UPDATE) then IF onecell=null works fine.
> This bug is not present when you create a table with COMPACT STORAGE directive.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message