Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 26180 invoked from network); 3 Jan 2011 17:32:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 17:32:53 -0000 Received: (qmail 71673 invoked by uid 500); 3 Jan 2011 17:32:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 71645 invoked by uid 500); 3 Jan 2011 17:32:51 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 71637 invoked by uid 99); 3 Jan 2011 17:32:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 17:32:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saptah@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 17:32:45 +0000 Received: by qwg5 with SMTP id 5so14348012qwg.31 for ; Mon, 03 Jan 2011 09:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=MoU135i2iSZQF1lp9g4pptGOck3j8rRqM6NjgfiUZWQ=; b=oyytioADAgyjnfjdGe+5jkooyMgTPPRzw3wF98BU7p6gvH0lcmb5g5BwXwaAQDElnb 5Z96RXMDVG3u3JWzE+bUZYwZyiVnRYNd1AMCdRwbSyrltGqes6eEUn4cRs3ZY3UvpnLq rtNxqfhmZketj74OhYg37xqDzF/O5NGoSj/vc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Exki9dGSp+VCA2/eeYCnwexv/iQ9Z9AbYwBlugIk6Pz38DrRuBoww3bheQFj4+D917 KQGkiECLE5lFMxCuE42XDzA0mC4OJdOXIW9DVTg3yYlC+HSNvBifbnBtcJWP+8fZOn/F mKPakWrjAg1h+28gvpggt0vai7fRkCHBOtNiQ= MIME-Version: 1.0 Received: by 10.229.189.145 with SMTP id de17mr17819438qcb.278.1294075944191; Mon, 03 Jan 2011 09:32:24 -0800 (PST) Received: by 10.229.12.202 with HTTP; Mon, 3 Jan 2011 09:32:24 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Jan 2011 18:32:24 +0100 Message-ID: Subject: Re: Insert LongType with ruby From: vicent roca daniel To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016361e811ef747520498f48844 X-Virus-Checked: Checked by ClamAV on apache.org --0016361e811ef747520498f48844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 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 =3D> 1234.to_s}) > > The columnNames are tye TimeStamp. this way I got an ordened record by > time. > > I think I'm not inserting a correct value here. =BFany thoughts ? > > What error are you getting? > > -ryan > --0016361e811ef747520498f48844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ryan,

When I insert the column, I don't get =A0an= y error. But, when I inspect the contents, I don't see a valid number.<= /div>
also, If I try to do a range query, I'm not getting the expec= ted results.

On Mon, Jan 3, 2011 at 6:02 PM, Ryan King <ryan@twitter.com> wrote:
On Sun, Jan 2, 2011 at 3:45 PM, vicent ro= ca daniel <saptah@gmail.com> = 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:
> =A0=A0=A0app.insert(:Data, 'device1-cpu', { Time.now =3D> 1= 234.to_s})
> The columnNames are tye TimeStamp. this way I got an ordened record by= time.
> I think I'm not inserting a correct value here. =BFany thoughts ?<= br>
What error are you getting?

-ryan

--0016361e811ef747520498f48844--