Re: Ruby thrift is trying to write Time as string

2011-02-07 Thread Ryan King
On Sat, Feb 5, 2011 at 10:12 PM, Joshua Partogi joshua.j...@gmail.com wrote: Hi, I don't know whether my assumption is right or not. When I tried to insert a Time value into a column I am getting this exception: vendor/ruby/1.8/gems/thrift-0.5.0/lib/thrift/protocol/binary_protocol.rb:106:in

Re: Ruby thrift is trying to write Time as string

2011-02-07 Thread Joshua Partogi
Thanks Ryan. That makes more sense now. So I should instead find a way to (de)serialize Ruby objects to string vice versa when inserting to Column. Kind regards, Joshua On Tue, Feb 8, 2011 at 4:43 AM, Ryan King r...@twitter.com wrote: On Sat, Feb 5, 2011 at 10:12 PM, Joshua Partogi

Re: Ruby thrift is trying to write Time as string

2011-02-06 Thread Aaron Morton
Is there something missing from the error stack? I'm not sure what the actual error is, I also am not really a ruby coder :)Can you provide your schema definition and the data you are trying to insert?AaronOn 06 Feb, 2011,at 07:12 PM, Joshua Partogi joshua.j...@gmail.com wrote:Hi,I don't know

Ruby thrift is trying to write Time as string

2011-02-05 Thread Joshua Partogi
Hi, I don't know whether my assumption is right or not. When I tried to insert a Time value into a column I am getting this exception: vendor/ruby/1.8/gems/thrift-0.5.0/lib/thrift/protocol/binary_protocol.rb:106:in `write_string' vendor/ruby/1.8/gems/thrift-0.5.0/lib/thrift/client.rb:35:in