Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 74000 invoked from network); 19 Jul 2009 05:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jul 2009 05:24:16 -0000 Received: (qmail 47258 invoked by uid 500); 19 Jul 2009 05:25:21 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 47191 invoked by uid 500); 19 Jul 2009 05:25:20 -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 47182 invoked by uid 99); 19 Jul 2009 05:25:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2009 05:25:20 +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 mobiledreamers@gmail.com designates 209.85.210.191 as permitted sender) Received: from [209.85.210.191] (HELO mail-yx0-f191.google.com) (209.85.210.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2009 05:25:10 +0000 Received: by yxe29 with SMTP id 29so2611071yxe.32 for ; Sat, 18 Jul 2009 22:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=KcV8XsYeqrvPK5lQVVKKOGuyeHqwEZSyd+9W0HdAgmE=; b=Dd3VWfSAWibWN5k0ErFG2Zh+bjGINHsAcFBqKQgOQyPqUFMYHrhj2DVPnrosmKyc5d JpcNlmn6m+XB9UuaYIVgCbDsYvj+GA0dK15EP+3Dc3nDniXs4c2VeTkvuTPD6mIkPe0b 3i5aCpMOYieDzz3niJRZ9L7AktdY9eevNkkDQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mLUBdOCEkOj0fTdOSbRrmbSCDEJN1NZKrxf6xnomSd4OxY3FgH2bRZx8KdwaXeGtt1 TvPowpUGihlNODWcae2H3U50ugsLWsDs504C2Cvx3/nUH4USei8STdbbJugkt+u9V3Pt brHRYMwZw5+rtecOYBksaAz1vCwbomvnPuCKg= MIME-Version: 1.0 Received: by 10.100.226.6 with SMTP id y6mr4264493ang.104.1247981088146; Sat, 18 Jul 2009 22:24:48 -0700 (PDT) Date: Sat, 18 Jul 2009 22:24:48 -0700 Message-ID: Subject: python thrift cassandra: get_slice_super vs get_slice_super_by_names From: mobiledreamers@gmail.com To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016369201ed72072c046f083dee X-Virus-Checked: Checked by ClamAV on apache.org --0016369201ed72072c046f083dee Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit *Why doesnt res return ColumnFamily Related whereas res2 works just fine thanks?* timestamp = time.time() res = client.get_slice_super('Table1', kw, 'Super1','','',True,0,1000) print *res* [] res2 = client.get_slice_super_by_names('Table1', 'tofu', 'Super1', ['Related',])[0] print res2 [superColumn_t(name='Related', columns=[column_t(columnName='tofu calories', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu festival', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu marinade', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu recipe', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu recipes', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu recipes easy', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu scramble', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofu stir fry', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofurkey', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687), column_t(columnName='tofutti', value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687)])] -- Bidegg worlds best auction site http://bidegg.com --0016369201ed72072c046f083dee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Why doesnt res return ColumnFamily Related whereas res2 works just fine<= br>thanks?

timestamp =3D time.time()
res =3D client.get_slice= _super('Table1', kw, 'Super1','','',True,0,= 1000)
print res
[]
res2 =3D client.get_slice_super_by_names('Tab= le1', 'tofu', 'Super1', ['Related',])[0]

print res2
[superColumn_t(name=3D'Related', c= olumns=3D[column_t(columnName=3D'tofu calories', value=3D"(dp1= \nS'count'\np2\nI1\ns.", timestamp=3D1247980687), column_t(col= umnName=3D'tofu festival', value=3D"(dp1\nS'count'\np2= \nI1\ns.", timestamp=3D1247980687), column_t(columnName=3D'tofu ma= rinade', value=3D"(dp1\nS'count'\np2\nI1\ns.", timest= amp=3D1247980687), column_t(columnName=3D'tofu recipe', value=3D&qu= ot;(dp1\nS'count'\np2\nI1\ns.", timestamp=3D1247980687), colum= n_t(columnName=3D'tofu recipes', value=3D"(dp1\nS'count= 9;\np2\nI1\ns.", timestamp=3D1247980687), column_t(columnName=3D't= ofu recipes easy', value=3D"(dp1\nS'count'\np2\nI1\ns.&quo= t;, timestamp=3D1247980687), column_t(columnName=3D'tofu scramble',= value=3D"(dp1\nS'count'\np2\nI1\ns.", timestamp=3D124798= 0687), column_t(columnName=3D'tofu stir fry', value=3D"(dp1\nS= 'count'\np2\nI1\ns.", timestamp=3D1247980687), column_t(column= Name=3D'tofurkey', value=3D"(dp1\nS'count'\np2\nI1\ns.= ", timestamp=3D1247980687), column_t(columnName=3D'tofutti', v= alue=3D"(dp1\nS'count'\np2\nI1\ns.", timestamp=3D12479806= 87)])]


--
Bidegg worlds best auction site
http://bidegg.com
--0016369201ed72072c046f083dee--