I have a pig relation that reads some thing like -
describe A;
A:{header:(member_id, field_2,..)}
Now I want to tease out just the members so I do -
A1 = FOREACH A GENERATE A.header.member_id;
A2 = LIMIT A1 10;
dump A2;
This runs for a very long time culminating in the error - Unable to open iterator for alias A2. Backend error : Scalar has more than one row in the output.
What am I doing wrong?