Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Drew Schleck
Try setting start to "" and end to "~". This is what I did to "fix" Lazyboy and it seems to work alright for now. 2009/8/19 Teodor Sigaev : >> start and finish in SliceRange are non-optional. Try empty strings. > > This is a partial fix :) - it works and doesn't emit any exception but > returns n

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
start and finish in SliceRange are non-optional. Try empty strings. This is a partial fix :) - it works and doesn't emit any exception but returns nothing. -- Teodor Sigaev E-mail: teo...@sigaev.ru WWW: http

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Michael Greene
start and finish in SliceRange are non-optional. Try empty strings. 2009/8/19 Teodor Sigaev : > Some more news, I added printing of stack trace to perl's client, and I see > that problem is in getting answer from server, not in sending. It breaks on > reading of exception (TMessageType::EXCEPTION

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
Some more news, I added printing of stack trace to perl's client, and I see that problem is in getting answer from server, not in sending. It breaks on reading of exception (TMessageType::EXCEPTION) from server side. Cassandra outputs (with loglevel DEBUG): DEBUG - get_slice_from ERROR - Intern

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev : >> Dunno, then.  Bug in the generated perl code?  Wouldn't be the first time. > > Interesting, if column_names is added with known status ids then Cassandra > returns them although it doesn't take into account reversed and count > options. it's not supposed to. column_na

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
Dunno, then. Bug in the generated perl code? Wouldn't be the first time. Interesting, if column_names is added with known status ids then Cassandra returns them although it doesn't take into account reversed and count options. $result = $client->get_slice(

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Evan Weaver
In the Ruby Thrift it expects a boolean, FYI. Maybe the "0 is false" Perlism is shortcircuited? 2009/8/19 Teodor Sigaev : >> If it's objecting to the 0 in reversed=>0, it sounds like a perl >> specific problem -- why would it be turning that into a string? > > It seems to me that it isn't connecte

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev : >> If it's objecting to the 0 in reversed=>0, it sounds like a perl >> specific problem -- why would it be turning that into a string? > > It seems to me that it isn't connected to reversed. I changed to 1 and > nothing was changed. Dunno, then. Bug in the generated perl

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
If it's objecting to the 0 in reversed=>0, it sounds like a perl specific problem -- why would it be turning that into a string? It seems to me that it isn't connected to reversed. I changed to 1 and nothing was changed. -- Teodor Sigaev E-mail: teo...@sigaev.r

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Evan Weaver
I just updated that blog post yesterday to use latest trunk. I would say get the Ruby version working; then try to port it. Evan On Wed, Aug 19, 2009 at 9:48 AM, Jonathan Ellis wrote: > 2009/8/19 Teodor Sigaev : >> It produces following error messages >> $VAR1 = 'Can\'t use string ("0") as a SCA

Re: Pls, help with fetching of super-column's value

2009-08-19 Thread Jonathan Ellis
2009/8/19 Teodor Sigaev : > It produces following error messages > $VAR1 = 'Can\'t use string ("0") as a SCALAR ref while "strict refs" in use > at /usr/lib/perl5/site_perl/5.8.8/Thrift/BinaryProtocol.pm line 376.' If it's objecting to the 0 in reversed=>0, it sounds like a perl specific problem -

Pls, help with fetching of super-column's value

2009-08-19 Thread Teodor Sigaev
Hello! I'm trying to implement schema of Twitter pointed in http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/ to play and make experiments with Cassandra. That schema and code was developed for Cassandra-0.3 and I'm trying to modify it to work with last Cassandra ve