You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2011/03/03 02:21:36 UTC

[jira] Updated: (PIG-1573) PIG shouldn't pass all input to a UDF if the UDF specify no argument

     [ 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