You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by paradisehit <pa...@163.com> on 2008/09/01 04:26:25 UTC

When is the map type data created?

 I can use LOAD or FOREACH to create a data type as a Tuple, or use GROUP/COGROUP to create a data type bag. But when does the map type occurs? Or it may be used in UDFs?

 
 
 

Re: When is the map type data created?

Posted by Alan Gates <ga...@yahoo-inc.com>.
There is no native pig operation that creates a map as a result. A user 
supplied load function can create them, as can an EvalFunc.

Alan.

paradisehit wrote:
>  I can use LOAD or FOREACH to create a data type as a Tuple, or use GROUP/COGROUP to create a data type bag. But when does the map type occurs? Or it may be used in UDFs?
>
>  
>  
>  
>