expected condition of attribute exists=true does not work

Bug #1313965 reported by Charles Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
High
Dmitriy Ukhlov

Bug Description

In conditional operations, the expected condition doesn't work when checking an attribute exists in the table.

    "expected": {
        "my_table_attr": {
            "exists": true
        }
    }

would generate CQL query string like this:

    IF attr_exist={'Subject'}

where attar_exist has the value of {'Author', 'Body', 'DateTime', 'MessageId', 'Subject'}.

The corresponding CQL statement failed with Cassandra 2.0.7.

Revision history for this message
Charles Wang (charles-wang) wrote :

The collection type supports CONTAINS in Cassandra 2.1. See the following issue fixed in Cassandra 2.1 beta1:
   https://issues.apache.org/jira/browse/CASSANDRA-4511

Revision history for this message
Charles Wang (charles-wang) wrote :

And this issue https://issues.apache.org/jira/browse/CASSANDRA-6383 (also fixed in Cassandra 2.1 beta1)

Changed in magnetodb:
milestone: none → 2.0.4
Changed in magnetodb:
importance: Undecided → Medium
Changed in magnetodb:
milestone: 2.0.4 → 2.0.5
Changed in magnetodb:
milestone: 2.0.5 → 2.0.6
Changed in magnetodb:
importance: Medium → High
Dmitriy Ukhlov (dukhlov)
Changed in magnetodb:
assignee: nobody → Dmitriy Ukhlov (dukhlov)
Changed in magnetodb:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnetodb (master)

Reviewed: https://review.openstack.org/99003
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=3241250b38554ce81a7f8c18721bf0112d423338
Submitter: Jenkins
Branch: master

commit 3241250b38554ce81a7f8c18721bf0112d423338
Author: Dmitriy Ukhlov <email address hidden>
Date: Tue Jun 10 13:33:03 2014 +0300

    Fix expected condition bug

    Closes-bug: #1313965
    Closes-bug: #1296689

    Change-Id: I6921d0c75d956a3aaef0af9d78d42bb643103a1d

Changed in magnetodb:
status: In Progress → Fix Committed
Changed in magnetodb:
milestone: 2.0.6 → juno-3
Changed in magnetodb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.