sample-complex.txtHi All,
I am running PIG query as mentioned below
grunt> a = LOAD '/user/maria_dev/Sample_Complex.txt' USING JsonLoader ('recipe:chararray,ingredients:{(name:chararray)},inventor:(name:chararray,age:int)');
grunt> b = FOREACH a GENERATE recipe;
grunt> DUMP b;
Output is
(Tacos)
(TomatoSoup)
But I want to get the output as
Recipe
(Tacos)
(TomatoSoup)
Please Suggest
Samle dataset is also attached