python thrift cassandra: get_slice_super vs get_slice_super_by_names

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

python thrift cassandra: get_slice_super vs get_slice_super_by_names

mobiledreamers
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

Jonathan Ellis-3
I would guess because kw != 'tofu'

On Sun, Jul 19, 2009 at 12:24 AM, <[hidden email]> 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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

mobiledreamers
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 <[hidden email]> wrote:
I would guess because kw != 'tofu'

On Sun, Jul 19, 2009 at 12:24 AM, <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names

Jonathan Ellis-3
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, <[hidden email]> 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 <[hidden email]> wrote:
>>
>> I would guess because kw != 'tofu'
>>
>> On Sun, Jul 19, 2009 at 12:24 AM, <[hidden email]> 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
>
Loading...