Re: setting ttl using timestamp field of record during insertion in cassandra

2016-08-08 Thread Sujeet Kumar
Team > > MTC 2250 > > #cassandra - for the latest news and updates > > > > *From:* Sujeet Kumar [mailto:genioussuj...@gmail.com] > *Sent:* Monday, August 08, 2016 11:18 AM > *To:* user@cassandra.apache.org > *Subject:* setting ttl using timestamp field of record during insertio

RE: setting ttl using timestamp field of record during insertion in cassandra

2016-08-08 Thread SEAN_R_DURITY
2250 #cassandra - for the latest news and updates From: Sujeet Kumar [mailto:genioussuj...@gmail.com] Sent: Monday, August 08, 2016 11:18 AM To: user@cassandra.apache.org Subject: setting ttl using timestamp field of record during insertion in cassandra Hi I want to set TTL 30 days from the time

setting ttl using timestamp field of record during insertion in cassandra

2016-08-08 Thread Sujeet Kumar
Hi I want to set TTL 30 days from the time field of table record(id,name,time) during insertion.For this I am creating a User Defined Function(UDF) bigint fun(rTime,cTime) as CREATE FUNCTION fun(rtime timestamp,ctime timestamp) CALLED ON NULL INPUT RETURNS bigint LANGUAGE java as 'return