incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremiah Jordan <JEREMIAH.JOR...@morningstar.com>
Subject RE: Write Timestamps
Date Fri, 26 Oct 2012 16:10:44 GMT
Sorry, should have said, "If you do not provide one, the CQL layer on the server adds the timestamp",
unlike thrift where the timestamp is always client side.

Bill,
Glad 1.1.6 fixed your issue.

-Jeremiah

________________________________________
From: Eric Evans [eevans@acunu.com]
Sent: Thursday, October 25, 2012 4:09 PM
To: dev@cassandra.apache.org
Subject: Re: Write Timestamps

On Wed, Oct 24, 2012 at 9:13 PM, Jeremiah Jordan
<JEREMIAH.JORDAN@morningstar.com> wrote:
> How are you doing the write?  CQL or Thrift?  In thrift, the client specifies the timestamp,
and you should always be seeing that as the timestamp.  In CQL, the CQL layer on the server
adds the timestamp.

For the record, you can supply a timestamp with CQL, same as you can
with Thrift.  For example:

INSERT INTO somedb.sometable (id, given, surname) VALUES ('pgriffith',
'Peter', 'Griffith') USING TIMESTAMP 42;


--
Eric Evans
Acunu | http://www.acunu.com | @acunu

Mime
View raw message