cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <>
Subject Re: Ruby thrift is trying to write Time as string
Date Mon, 07 Feb 2011 00:49:15 GMT
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? 

On 06 Feb, 2011,at 07:12 PM, Joshua Partogi <> wrote:


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 `write'
vendor/ruby/1.8/gems/thrift-0.5.0/lib/thrift/client.rb:35:in `send_message'
vendor/ruby/1.8/gems/cassandra-0.9.0/lib//vendor/0.7/gen-rb/cassandra.rb:213:in `send_batch_mutate'
vendor/ruby/1.8/gems/cassandra-0.9.0/lib/./vendor/0.7/gen-rb/cassandra.rb:208:in `batch_mutate'
vendor/ruby/1.8/gems/cassandra-0.9.0/lib/cassandra/0.7/protocol.rb:8:in `_mutate'
vendor/ruby/1.8/gems/cassandra-0.9.0/lib/cassandra/cassandra.rb:130:in `insert'

But I am not getting any error if I insert a Time value into a sub-column. 

Is this an error or does it suppose to work that way?

Thanks heaps for the insight.

Kind regards,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message