Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 4215 invoked from network); 7 Jul 2009 13:32:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 13:32:35 -0000 Received: (qmail 25871 invoked by uid 500); 7 Jul 2009 13:32:45 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 25858 invoked by uid 500); 7 Jul 2009 13:32:45 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 25652 invoked by uid 99); 7 Jul 2009 13:32:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 13:32:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kevincastiglione@gmail.com designates 209.85.221.178 as permitted sender) Received: from [209.85.221.178] (HELO mail-qy0-f178.google.com) (209.85.221.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 13:32:35 +0000 Received: by qyk8 with SMTP id 8so4970222qyk.32 for ; Tue, 07 Jul 2009 06:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=iaOPwg7e4FmZH64ie/CKdw1q+c8i3CDecfYFgGMDzYA=; b=bYyDMVWCGjQuHCDU/hXWveVlsjtNnwS6+tOZpLxKvzOHc7jAmCwwzUienFPzwwQYs4 nzAGBhGLDATt9UgyHxP1e+SoUluph+BdeYBk/aG1iA/KJLj5QZAXUoB+frWIVNtgVkJH a8DwMDYypT87zGo64wTrStCo3hh52hYktJL7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Lgbg2CHHmDPcEGJmqK93J0TamzF9oL+08/dDwb1rQjkKZAiH5X2n/DIk3GfpUgXr53 1AiaGK/gzNAZ5Tmnk/gO4DW7iYixR6rWGgDHAIfuZlD6NmARM2dcqkzsSkebioorRO+W Y+uLiIMRsgbLEfO5EWs2B/29YkaoABwrwGS6o= MIME-Version: 1.0 Received: by 10.229.88.134 with SMTP id a6mr3110084qcm.89.1246973534507; Tue, 07 Jul 2009 06:32:14 -0700 (PDT) In-Reply-To: References: From: Kevin Castiglione Date: Tue, 7 Jul 2009 06:31:54 -0700 Message-ID: Subject: Re: problems with python client To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016367f98229191dc046e1da60f X-Virus-Checked: Checked by ClamAV on apache.org --0016367f98229191dc046e1da60f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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? thanks --0016367f98229191dc046e1da60f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Jul 7, 2009 at 6:26 AM, Jonathan Ellis <jbellis@gmail.com> wrote:
<= div class=3D"gmail_quote">
> 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 s= erver receives it as the argument limit?
this is the python code:=
>>> client.get_slice(tablename=3D'Table1', key=3D'1= 9;, columnParent=3D'Standard1', start=3D'', finish=3D'&= #39;, isAscending=3DTrue, offset=3D-1, count=3D1000)

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

you= can see that i passed the value -1 to offset and in the cassandra server l= og, it is received as the argument limit.
offset and limit mean different things right? is this a problem in python c= lient? or am i missing something here?
thanks
--0016367f98229191dc046e1da60f--