Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3D181058A for ; Tue, 7 Jan 2014 08:41:11 +0000 (UTC) Received: (qmail 48092 invoked by uid 500); 7 Jan 2014 08:41:09 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 47669 invoked by uid 500); 7 Jan 2014 08:41:09 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 47621 invoked by uid 99); 7 Jan 2014 08:41:07 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 08:41:07 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id CF0B91C024F; Tue, 7 Jan 2014 08:41:06 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2261910843608538356==" MIME-Version: 1.0 Subject: Review Request 16679: Introduce UDF for converting datetime to different presentation formats From: "Kostiantyn Kudriavtsev" To: "hive" , "Kostiantyn Kudriavtsev" Date: Tue, 07 Jan 2014 08:41:06 -0000 Message-ID: <20140107084106.1151.30638@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Kostiantyn Kudriavtsev" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/16679/ X-Sender: "Kostiantyn Kudriavtsev" Reply-To: "Kostiantyn Kudriavtsev" X-ReviewRequest-Repository: hive --===============2261910843608538356== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16679/ ----------------------------------------------------------- Review request for hive. Bugs: hive-6046 https://issues.apache.org/jira/browse/hive-6046 Repository: hive Description ------- Introduce UDF for converting datetime to different presentation formats, for example: format_date('2013-12-12 00:00:00.0', 'yyyy-MM-dd HH:mm:ss.S', 'yyyy/MM/dd') There are two signatures to facilitate further using: format_date(datetime, fromFormat, toFormat) format_date(timestamp, toFormat) Diffs ----- Diff: https://reviews.apache.org/r/16679/diff/ Testing ------- Thanks, Kostiantyn Kudriavtsev --===============2261910843608538356==--