Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 52159 invoked from network); 3 Mar 2011 01:21:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 01:21:58 -0000 Received: (qmail 51649 invoked by uid 500); 3 Mar 2011 01:21:56 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 51591 invoked by uid 500); 3 Mar 2011 01:21:56 -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 51394 invoked by uid 500); 3 Mar 2011 01:21:56 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 51322 invoked by uid 99); 3 Mar 2011 01:21:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 01:21:56 +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; Thu, 03 Mar 2011 01:21:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE2684DACC for ; Thu, 3 Mar 2011 01:21:36 +0000 (UTC) Date: Thu, 3 Mar 2011 01:21:36 +0000 (UTC) From: "Olga Natkovich (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <1309243788.9702.1299115296972.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (PIG-1573) PIG shouldn't pass all input to a UDF if the UDF specify no 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-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olga Natkovich updated PIG-1573: -------------------------------- Fix Version/s: 0.10 > PIG shouldn't pass all input to a UDF if the UDF specify no argument > -------------------------------------------------------------------- > > Key: PIG-1573 > URL: https://issues.apache.org/jira/browse/PIG-1573 > Project: Pig > Issue Type: Bug > Affects Versions: 0.7.0 > Reporter: Xuefu Zhang > Assignee: Daniel Dai > Fix For: 0.10 > > > Currently If in a pig script user uses a UDF with no argument, PIG backend assumes that the UDF takes all input so at run time it passes all input as a tuple to the UDF. This assumption is incorrect, causing conceptual confusions. If a UDF takes all input, it can specify a star (*) as its argument. If it specify no argument at all, then we assume that it requires no input data. > We need to differentiate no input and all input for a UDF. Thus, in case that a UDF specify no argument, backend should pass the UDF an empty tuple. > See notes in PIG-1586 for more information. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira