Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-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 E98FEE72A for ; Fri, 30 Nov 2012 19:59:59 +0000 (UTC) Received: (qmail 68264 invoked by uid 500); 30 Nov 2012 19:59:58 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 68181 invoked by uid 500); 30 Nov 2012 19:59:58 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 68075 invoked by uid 500); 30 Nov 2012 19:59:58 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 68022 invoked by uid 99); 30 Nov 2012 19:59:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 19:59:58 +0000 Date: Fri, 30 Nov 2012 19:59:58 +0000 (UTC) From: "Julien Le Dem (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1082030222.46742.1354305598607.JavaMail.jiratomcat@arcas> In-Reply-To: <1490638324.40031.1351534093432.JavaMail.jiratomcat@arcas> Subject: [jira] [Reopened] (PIG-3014) CurrentTime() UDF has undesirable characteristics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-3014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julien Le Dem reopened PIG-3014: -------------------------------- I see a failing test: org.apache.pig.test.TestBuiltin.testConversionBetweenDateTimeAndString java.lang.NullPointerException at org.apache.pig.builtin.CurrentTime.exec(CurrentTime.java:41) at org.apache.pig.test.TestBuiltin.testConversionBetweenDateTimeAndString(TestBuiltin.java:450) > CurrentTime() UDF has undesirable characteristics > ------------------------------------------------- > > Key: PIG-3014 > URL: https://issues.apache.org/jira/browse/PIG-3014 > Project: Pig > Issue Type: Bug > Reporter: Jonathan Coveney > Assignee: Jonathan Coveney > Fix For: 0.12 > > Attachments: PIG-3014-0.patch, PIG-3014-1.patch, PIG-3014-2.patch > > > As part of the explanation of the new DateTime datatype I noticed that we had added a CurrentTime() UDF. The issue with this UDF is that it returns the current time _of every exec invocation_, which can lead to confusing results. In PIG-1431 I proposed a way such that every instance of the same NOW() will return the same time, which I think is better. Would enjoy thoughts. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira