I don't know.
Looking the table with de cli I see this results:
Using app.insert(:Numers, 'device1-cpu', {Time.now => i.to_s }) :
=> (column=5300944406187227576, value=3, timestamp=1294175880417061)
=> (column=5300944406181604704, value=2, timestamp=1294175880415584)
=> (column=530094440607197853
On Tue, Jan 4, 2011 at 12:50 PM, vicent roca daniel wrote:
> I'm getting more consistent results using Time.stamp instead of Time
> From: https://github.com/fauna/cassandra/blob/master/lib/cassandra/long.rb
Yeah, you were probably overwriting values then.
-ryan
I'm getting more consistent results using Time.stamp instead of Time
From: https://github.com/fauna/cassandra/blob/master/lib/cassandra/long.rb
when NilClass, Time
# Time.stamp is 52 bytes, so we have 12 bytes of entropy left over
int = ((bytes || Time).stamp << 12) + rand(2**12)
The problem I think I have is that I think I'm not storing the correct
value.
If I do this (for example):
app.insert(:NumData, 'device1-cpu', { Time.now + 1 minut => 10.to_s })
app.insert(:NumData, 'device1-cpu', { Time.now + 1 minu => 10.to_s })
app.insert(:NumData, 'device1-cpu', { Time.now + 1
On Mon, Jan 3, 2011 at 1:15 PM, vicent roca daniel wrote:
> hi,
> no I'n not getting any exception.
Then what problem are you seeing?
-ryan
> The value gets inserted withou problem.
> If I try to convert to string I get:
> Cassandra::Comparable::TypeError: Expected "2011-01-03 22:14:40 +0100" t
hi,
no I'n not getting any exception.
The value gets inserted withou problem.
If I try to convert to string I get:
Cassandra::Comparable::TypeError: Expected "2011-01-03 22:14:40 +0100" to
cast to a Cassandra::Long (invalid bytecount)
from
/Users/armandolalala/.rvm/gems/ruby-1.9.2-p0/gems/cassandr
On Mon, Jan 3, 2011 at 12:56 PM, vicent roca daniel wrote:
> 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 })
I'm going to assume you're getting an exception here? I
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.
Thanks!!
On Mon, Jan 3, 2011 at 6:52 PM, Ryan King wrote:
> On Mon, Jan 3, 2011 at 9:32 AM,
On Mon, Jan 3, 2011 at 9:32 AM, vicent roca daniel 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.
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.
On Mon, Jan 3, 2011 at 6:02 PM, Ryan King wrote:
> On Sun, Jan 2, 2011 at 3:45 PM, vicent roca danie
On Sun, Jan 2, 2011 at 3:45 PM, vicent roca daniel wrote:
> Hi guys, I need your help.
> I'm trying to insert a column name of type LongType using the ruby wrapper,
> but I can't get it working.
> What I'm trying is something like this:
> app.insert(:Data, 'device1-cpu', { Time.now => 1234.to_s
11 matches
Mail list logo