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 C50A0CE9E for ; Fri, 14 Mar 2014 18:48:52 +0000 (UTC) Received: (qmail 37609 invoked by uid 500); 14 Mar 2014 18:48:47 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 37475 invoked by uid 500); 14 Mar 2014 18:48:46 -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 37409 invoked by uid 500); 14 Mar 2014 18:48:43 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 37399 invoked by uid 99); 14 Mar 2014 18:48:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 18:48:42 +0000 Date: Fri, 14 Mar 2014 18:48:42 +0000 (UTC) From: "Jenny Thompson (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PIG-3805) ToString(datetime [, format string]) doesn't work without the second argument 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-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jenny Thompson updated PIG-3805: -------------------------------- Attachment: PIG-3805.patch > ToString(datetime [, format string]) doesn't work without the second argument > ----------------------------------------------------------------------------- > > Key: PIG-3805 > URL: https://issues.apache.org/jira/browse/PIG-3805 > Project: Pig > Issue Type: Bug > Components: internal-udfs > Affects Versions: 0.12.0 > Reporter: Jenny Thompson > Priority: Minor > Labels: easyfix > Attachments: PIG-3805.patch > > > The exec function of ToString is written to handle 1 or 2 arguments (it defaults to ISO, which is consistent with ToDate). > However, the getArgToFuncMapping function returns only one FuncSpec, requiring the formatString argument. > To fix: just return add another FuncSpec to getArcToFuncMapping. -- This message was sent by Atlassian JIRA (v6.2#6252)