cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vicent roca daniel <sap...@gmail.com>
Subject Re: Insert LongType with ruby
Date Mon, 03 Jan 2011 20:56:26 GMT
Hi again!
code:

require 'rubygems'
require 'cassandra'

app = Cassandra.new('AOM', servers = "127.0.0.1:9160")
app.insert(:NumData, 'device1-cpu', { Time.now => 10.to_s })

....

storag-confl.xm.

<Keyspace Name="AOM">
<ColumnFamily CompareWith="LongType" Name="NumericArchive" />
</..>


Thanks!!


On Mon, Jan 3, 2011 at 6:52 PM, Ryan King <ryan@twitter.com> wrote:

> On Mon, Jan 3, 2011 at 9:32 AM, vicent roca daniel <saptah@gmail.com>
> wrote:
> > Hi Ryan,
> > When I insert the column, I don't get  any error. But, when I inspect the
> > contents, I don't see a valid number.
> > also, If I try to do a range query, I'm not getting the expected results.
>
> Please show the code you're using.
>
> -ryan
>

Mime
View raw message