[ 
https://issues.apache.org/jira/browse/PIG-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922157#action_12922157
 ] 

Daniel Dai commented on PIG-1577:
---------------------------------

The issue in this Jira is that Pig has no ability to declare input schema of 
the UDF with variable number of arguments (in getArgToFuncMapping). You can 
interpret input tuple arbitrarily and use that for variable number of 
arguments. But with getArgToFuncMapping, you can get UDF signature matching and 
early input schema checking.

> support to variable number of arguments in UDF
> ----------------------------------------------
>
>                 Key: PIG-1577
>                 URL: https://issues.apache.org/jira/browse/PIG-1577
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>             Fix For: 0.9.0
>
>
> In the current implementation, functionality that allows to map arguments to 
> classes does not support functions with variable number of arguments. Also it 
> does not support funtions that can have variable (but fixed in number) number 
> of arguments. 
> This causes problems for string UDFs such as CONCAT that can take an 
> arbitrary number of arguments or TRIM that can take 1,2, or 3 arguments

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to