Return-Path: Delivered-To: apmail-hive-user-archive@www.apache.org Received: (qmail 57460 invoked from network); 24 Feb 2011 14:27:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2011 14:27:59 -0000 Received: (qmail 88471 invoked by uid 500); 24 Feb 2011 14:27:58 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 87977 invoked by uid 500); 24 Feb 2011 14:27:54 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 87962 invoked by uid 99); 24 Feb 2011 14:27:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Feb 2011 14:27:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.138.90.163] (HELO web121212.mail.ne1.yahoo.com) (98.138.90.163) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Feb 2011 14:27:44 +0000 Received: (qmail 27910 invoked by uid 60001); 24 Feb 2011 14:27:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298557630; bh=LA4xyuNBGF9RE7HeM8EgkPSoyCYlS+bCYpeAJtYGdMk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=4726r4cj/iW1n+TdnJ0Dgmu0j/BGFXw0DSfHEOKC3ZbZwCpdaZZdAlDWGSAAuTCG5OTHeRxuAwAwsoR/fjmX7rQs2zcU7erbLm7WCygiczray66q2v4YO3nLRsdo+IhJgRsWzkaZ3Zz1OHd3c+QUtdJFpY4eJEQaWUwwwfF+jN0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=1ka6ggmrg1j6D4IXkZ38SKawgVnEdJkQoUhR8c6mpbjJuG/qmLvbJAnTTVjN7RT4eQkFG6ZlJbC+UHDU6DB1t1TJ4Od+glVUyy8tAJ6TxDZps89IfAcBTQ4tKJBrTqU/rEEU7IrH8uh2G6kNSunzY5osR7+UwAovEauV+ZuyhRI=; Message-ID: <192860.25960.qm@web121212.mail.ne1.yahoo.com> X-YMail-OSG: cA5dV54VM1nilKbzKdKTzZJd2gI7prkOoK087AANy.J8n4e Q2Gvc_VxDYYq_96x06d5sXLzWx2E5CkuOqNboIQPBRe5Eu6B_r12J9OK5b3b OtZBWf3dY7KawT6MTbtUSxEn4lnk_OFTMTw3E.ZBlfgD3DL6xAwMPPg3qunv Y3fEwUOx2f_4SDuyP3_7WJ3p9V0qkuaRvFgBllCxShN2.hS5Swe8JeLc_zgi k.FEa3aSbBp6.1UzLx6Y- Received: from [65.91.151.194] by web121212.mail.ne1.yahoo.com via HTTP; Thu, 24 Feb 2011 06:27:10 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 Date: Thu, 24 Feb 2011 06:27:10 -0800 (PST) From: Bejoy Ks Subject: Re: How to add hours/minutes to a timestamp column in Hive Query To: user@hive.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1617214269-1298557630=:25960" X-Virus-Checked: Checked by ClamAV on apache.org --0-1617214269-1298557630=:25960 Content-Type: text/plain; charset=us-ascii Hi Experts Could some one please help me out with this? Any similar situations faced by any one in your real time hive queries? If I have to go ahead with an User Defined Function for this, then how could I implement and use the same in Hive? Does Hive have any plans/JIRAs in progress with this functionality implementation. Thank You Regards Bejoy K S ________________________________ From: Bejoy Ks To: user@hive.apache.org Sent: Wed, February 23, 2011 5:19:10 PM Subject: How to add hours/minutes to a timestamp column in Hive Query Hi Is there any function in hive with which we can add hours/minutes to a given stamp. Say I have a timestamp oriented column 'Arrival_Time', to do some database oriented calculations i have to add 4 hours to the 'Arrival_Time' in my Hive Query. How do I accomplish this? I have see in hive documentation that we can use the date_add(string startdate, int days) method to add days to a date. Any similar methods for time stamps to add hours? Regards Bejoy KS --0-1617214269-1298557630=:25960 Content-Type: text/html; charset=us-ascii
Hi Experts
      Could some one please help me out with this? Any similar situations faced by any one in your real time hive queries?
If I have to go ahead with an User Defined Function for this, then how could I implement and use the same in Hive?
Does Hive have any plans/JIRAs in progress with this functionality implementation.

Thank You

Regards
Bejoy K S


From: Bejoy Ks <bejoy_ks@yahoo.com>
To: user@hive.apache.org
Sent: Wed, February 23, 2011 5:19:10 PM
Subject: How to add hours/minutes to a timestamp column in Hive Query

Hi
    Is there any function in hive with which we can add hours/minutes to a given stamp.
Say I have a timestamp oriented column 'Arrival_Time', to do some database oriented calculations i have to add 4 hours to the 'Arrival_Time' in my Hive Query. How do I accomplish this? I have see in hive documentation that we can use the date_add(string startdate, int days) method to add days to a date. Any similar methods for time stamps to add hours?

Regards
Bejoy KS


--0-1617214269-1298557630=:25960--