-Re: Loading Map's in Pig
pablomar 2012-08-30, 17:09
I guess it is because you are using ',' as separator (there is a comma
between your val and the map) and then again inside the map (is that a bug
I tried with a space to separate the int from the map (input.txt):
and with this script:
data = load 'input.txt' using PigStorage(' ') as (val:int, m:Map);
On Thu, Aug 30, 2012 at 9:49 AM, Srini <[EMAIL PROTECTED]> wrote:
> I'm trying to load the following records using PigStorage(',') as
> (val:int, m:map[ ])... When I see dump of output I only get first column
> and empty value..
> Could some one suggest me how to load above records..