Grokbase Groups Pig user October 2010
FAQ
$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

Search Discussions

  • Thejas M Nair at Oct 14, 2010 at 10:39 pm
    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" 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedOct 13, '10 at 6:06a
activeOct 14, '10 at 10:39p
posts2
users2
websitepig.apache.org

People

Translate

site design / logo © 2021 Grokbase