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]; 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -