apache pig - pig latin FILTER and GENERATE -
i have simple tuple (userid, country, amount, transactionid, date, crap1, crap2,crap3) i using filter filter out data , @ same time want drop elements tuple. reason exist in tuple cause need them @ earlier point not after filter. currently doing b = filter date == 'xxxx'; c = foreach b generate name, country, tranactionid; is possible in 1 statement (to speed query), because understand foreach + filter + generate work on nested bags. not possible.. filter alias expression; and foreach { gen_blk | nested_gen_blk } [as schema];