cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Castiglione <>
Subject Re: problems with python client
Date Tue, 07 Jul 2009 13:31:54 GMT
On Tue, Jul 7, 2009 at 6:26 AM, Jonathan Ellis <> wrote:

>  > also the value i pass to offset gets passed to cassandra as limit, is
> this
> > expected?
> not sure what you mean.

for the function get_slice, there is an argument *offset*. what does that
do? whatever value i pass to it, the cassandra server receives it as the
argument *limit*?
this is the python code:
>>> client.get_slice(tablename='Table1', key='1', columnParent='Standard1',
start='', finish='', isAscending=True, *offset=-1*, count=1000)

this is the debug log from cassandra.
DEBUG - weakreadlocal reading SliceFromReadCommand(table='Table1', key='1',
columnFamily='Standard1', isAscending='true', *limit='-1'*, count='1000')

you can see that i passed the value -1 to offset and in the cassandra server
log, it is received as the argument limit.
offset and limit mean different things right? is this a problem in python
client? or am i missing something here?

View raw message