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 7C2EA9091 for ; Mon, 7 May 2012 14:11:15 +0000 (UTC) Received: (qmail 49243 invoked by uid 500); 7 May 2012 14:11:15 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 49143 invoked by uid 500); 7 May 2012 14:11:15 -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 49132 invoked by uid 500); 7 May 2012 14:11:15 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 49128 invoked by uid 99); 7 May 2012 14:11:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 14:11:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 14:11:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B9A02437727 for ; Mon, 7 May 2012 14:10:51 +0000 (UTC) Date: Mon, 7 May 2012 14:10:51 +0000 (UTC) From: "Andy Schlaikjer (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <680814732.34372.1336399851762.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1503952881.33270.1336373899074.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PIG-2685) error in EvalFunc ctor when implementing Algebraic UDF whose return type is parameterized 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-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269633#comment-13269633 ] Andy Schlaikjer commented on PIG-2685: -------------------------------------- The patch includes a test which fails under current build and passes with the patch to EvalFunc. Please let me know what additional tests you'd like to see here. Should I have submitted the test in a separate patch file? > error in EvalFunc ctor when implementing Algebraic UDF whose return type is parameterized > ----------------------------------------------------------------------------------------- > > Key: PIG-2685 > URL: https://issues.apache.org/jira/browse/PIG-2685 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.10.0 > Reporter: Andy Schlaikjer > Attachments: fixes_eval_func_algebraic_final_return_type_check.diff > > > EvalFunc ctor uses reference equality instead of value equality when verifying return type of "final" UDF and parent Algebraic UDF are equal. This is fine in the case when both values are Class instances, but breaks when return types are ParameterizedType instances. This prohibits the creation of an Algebraic UDF whose return type is {{Map}}, for instance. Please see the included unit test for an example along these lines. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira