I have a simple tuple (userid, country, amount, transactionid, date, crap1, crap2,crap3)
I am using FILTER to filter out some data and at the same time I want to drop some elements from the tuple. The reason they exist in the tuple is cause I need them at the some earlier point but not after the filter.
currently i am doing
B = FILTER A by date == 'xxxx';
C = FOREACH B GENERATE name, country, tranactionid;
Is it possible to do it in one statement (to speed up the query), because as I understand FOREACH + FILTER + GENERATE only work on nested bags.