Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> UDF allowed return data types?


Copy link to this message
-
Re: UDF allowed return data types?
thanks!

On Mon, Mar 12, 2012 at 11:36 AM, Jonathan Coveney <[EMAIL PROTECTED]>wrote:

> It is restricted to the pig types, yes. You could serializize it to a
> DataByteArray and manually manage that, or you could just convert it to a
> databag, or you could make it a hashmap with null values, or a tuple... but
> yeah.
>
> 2012/3/12 Yang <[EMAIL PROTECTED]>
>
> > I tried to return a Set<String> from my UDF, but it seems to give some
> > problems.
> >
> > what are the allowed return data types in UDF?
> >
> > is it constrained to those in the "Pig Types" section in
> > http://wiki.apache.org/pig/UDFManual  ?
> >
> > thanks
> > Yang
> >
>