[
https://issues.apache.org/jira/browse/PIG-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922228#action_12922228
]
Olga Natkovich commented on PIG-1577:
-------------------------------------
The issue is that if your function takes sometimes two and sometimes three
parameters and has getArgToFuncMapping it is likely to result in an error. If
you don't use getArgToFuncMapping things work just fine
> 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.