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

Mathias Herberts commented on PIG-1867:
---------------------------------------

You're right, I had never thought of returning a bag!

I guess this makes this issue a non-sense.

Thanks for the head up.

> Allow UDFs that can generate multiple output tuples from a single input tuple
> -----------------------------------------------------------------------------
>
>                 Key: PIG-1867
>                 URL: https://issues.apache.org/jira/browse/PIG-1867
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Mathias Herberts
>
> Hive offers this kind of thing using UDTF (User Defined Table generating 
> Functions), it would be very useful for Pig to offer something similar, thus 
> allowing more complex processing.
> One example of such use could be an n-gram generating function.
> I guess EvalFunc could be adapted/morped so exec returns an Iterator<T> 
> instead of T.
> In a first approach, the iterator scanning could be restricted to cases when 
> the UDF is used alone in a generate clause.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to