You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by mo...@gmail.com on 2009/07/19 07:24:48 UTC

python thrift cassandra: get_slice_super vs get_slice_super_by_names

*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

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

Posted by Jonathan Ellis <jb...@gmail.com>.
Strange.  If you can post a script showing how to reproduce the
problem from a fresh database then I can debug it.

On Sun, Jul 19, 2009 at 11:23 AM, <mo...@gmail.com> wrote:
> Jon i should have mntioned kw is 'tofu'
> that is why it looks quite not right
>
> On Sun, Jul 19, 2009 at 6:08 AM, Jonathan Ellis <jb...@gmail.com> wrote:
>>
>> I would guess because kw != 'tofu'
>>
>> On Sun, Jul 19, 2009 at 12:24 AM, <mo...@gmail.com> wrote:
>> > 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
>> >
>
>
>
> --
> Bidegg worlds best auction site
> http://bidegg.com
>

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

Posted by mo...@gmail.com.
Jon i should have mntioned kw is 'tofu'
that is why it looks quite not right

On Sun, Jul 19, 2009 at 6:08 AM, Jonathan Ellis <jb...@gmail.com> wrote:

> I would guess because kw != 'tofu'
>
> On Sun, Jul 19, 2009 at 12:24 AM, <mo...@gmail.com> wrote:
> > 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
> >
>



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

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

Posted by Jonathan Ellis <jb...@gmail.com>.
I would guess because kw != 'tofu'

On Sun, Jul 19, 2009 at 12:24 AM, <mo...@gmail.com> wrote:
> 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
>