[
https://issues.apache.org/jira/browse/CASSANDRA-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Hseu updated CASSANDRA-647:
------------------------------------
Component/s: Core
Description:
Here's an example (using my new python library at
http://github.com/vomjom/pycasso ):
>>> import pycasso
>>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test UTF8')
>>> list(test.get_range())
[]
>>> test.insert('key', {'column': 'value'})
1261512409
>>> list(test.get_range())
[('key', {'column': 'value'})]
>>> test.remove('key', 'column')
1261512421
>>> list(test.get_range())
[('key', {'column': 'K0\xd2\x85'})]
was:
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.
> get_range_slice() returns removed columns
> -----------------------------------------
>
> Key: CASSANDRA-647
> URL: https://issues.apache.org/jira/browse/CASSANDRA-647
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.5
> Environment: Linux
> Reporter: Jonathan Hseu
>
> Here's an example (using my new python library at
> http://github.com/vomjom/pycasso ):
> >>> import pycasso
> >>> test = pycasso.ColumnFamily(pycasso.connect(), 'Test Keyspace', 'Test
> >>> UTF8')
> >>> list(test.get_range())
> []
> >>> test.insert('key', {'column': 'value'})
> 1261512409
> >>> list(test.get_range())
> [('key', {'column': 'value'})]
> >>> test.remove('key', 'column')
> 1261512421
> >>> list(test.get_range())
> [('key', {'column': 'K0\xd2\x85'})]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.