You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Hseu (JIRA)" <ji...@apache.org> on 2009/12/19 19:24:18 UTC

[jira] Updated: (CASSANDRA-647) get_range_slice() returns removed columns

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

Jonathan Hseu updated CASSANDRA-647:
------------------------------------

    Description: 
Here's an example (using my soon-to-be-released python lib):

In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'Keyspace', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}

Also, get() returns a NotFoundException as expected.

  was:
Here's an example (using my soon-to-be-released python lib):

In [1]: import cdra
In [2]: test = cdra.ColumnFamily(cdra.connect(), 'VoteRank', 'Test')
In [3]: test.get_range_slice()
Out[3]: []
In [4]: test.insert('key', 'column', 'value')
In [5]: test.get_range_slice()
Out[5]: [('key', {'column': 'value'})]
In [6]: test.remove('key', 'column')
In [7]: test.get_range_slice()
Out[7]: [('key', {'column': 'K-\x19['})]
In [8]: test.get_slice('key')
Out[8]: {}

Also, get() returns a NotFoundException as expected.


> get_range_slice() returns removed columns
> -----------------------------------------
>
>                 Key: CASSANDRA-647
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-647
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.5
>         Environment: Linux
>            Reporter: Jonathan Hseu
>
> Here's an example (using my soon-to-be-released python lib):
> In [1]: import cdra
> In [2]: test = cdra.ColumnFamily(cdra.connect(), 'Keyspace', 'Test')
> In [3]: test.get_range_slice()
> Out[3]: []
> In [4]: test.insert('key', 'column', 'value')
> In [5]: test.get_range_slice()
> Out[5]: [('key', {'column': 'value'})]
> In [6]: test.remove('key', 'column')
> In [7]: test.get_range_slice()
> Out[7]: [('key', {'column': 'K-\x19['})]
> In [8]: test.get_slice('key')
> Out[8]: {}
> Also, get() returns a NotFoundException as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.