You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by prasenjit mukherjee <pr...@gmail.com> on 2010/10/13 08:05:56 UTC

loading multiple map schema

$cat a.out
[key1#val1,key2#val2]*[key3#[val31,val32]]

grunt> a = load 'a.out' using PigStorage('*') AS (A:[], B:[]);
grunt> dump a;

here is the output :
([key2#val2,key1#val1],)

I guess it is not taking the second map, where the value is not a single
string but a list of strings. Any idea how to load this data type  ?

-Thanks,
Prasen

Re: loading multiple map schema

Posted by Thejas M Nair <te...@yahoo-inc.com>.
What version of pig are you using ?

It works for me with 0.7 version and svn trunk version (local mode).

grunt> dump a;
([key2#val2,key1#val1],[key3#[val31,val32]])



On 10/12/10 11:05 PM, "prasenjit mukherjee" <pr...@gmail.com> wrote:

$cat a.out
[key1#val1,key2#val2]*[key3#[val31,val32]]

grunt> a = load 'a.out' using PigStorage('*') AS (A:[], B:[]);
grunt> dump a;

here is the output :
([key2#val2,key1#val1],)

I guess it is not taking the second map, where the value is not a single
string but a list of strings. Any idea how to load this data type  ?

-Thanks,
Prasen