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 D17B8DB8F for ; Mon, 22 Oct 2012 00:18:12 +0000 (UTC) Received: (qmail 75849 invoked by uid 500); 22 Oct 2012 00:18:12 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 75819 invoked by uid 500); 22 Oct 2012 00:18:12 -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 75811 invoked by uid 500); 22 Oct 2012 00:18:12 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 75807 invoked by uid 99); 22 Oct 2012 00:18:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2012 00:18:12 +0000 Date: Mon, 22 Oct 2012 00:18:11 +0000 (UTC) From: "Zhijie Shen (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <114225123.8090.1350865092189.JavaMail.jiratomcat@arcas> In-Reply-To: <52816188.8075.1350863771685.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (PIG-2996) The buildtin function "ToDate" has been mapped with wrong class names 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-2996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481099#comment-13481099 ] Zhijie Shen commented on PIG-2996: ---------------------------------- The fix is included in the patch for PIG-2982. > The buildtin function "ToDate" has been mapped with wrong class names > --------------------------------------------------------------------- > > Key: PIG-2996 > URL: https://issues.apache.org/jira/browse/PIG-2996 > Project: Pig > Issue Type: Bug > Components: data > Reporter: Zhijie Shen > Assignee: Zhijie Shen > Fix For: 0.11 > > > In ToDate#getArgToFuncMapping(), the method to get the mapped function's class name is incorrect: > s = new Schema(); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > funcList.add(new FuncSpec(ToDateISO.class.getClass().getName(), s)); > s = new Schema(); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > funcList.add(new FuncSpec(ToDate2ARGS.class.getClass().getName(), s)); > s = new Schema(); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > s.add(new Schema.FieldSchema(null, DataType.CHARARRAY)); > funcList.add(new FuncSpec(ToDate3ARGS.class.getClass().getName(), s)); > XXXX.class.getClass().getName() should be changed to XXXX.class.getName(). -- 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