Detailed example: FILTER-BY
Tuesday, February 22, 2011
8:12 PM
grunt> test = LOAD 'test.dat' USING PigStorage(' ' ) AS (name:chararray, toys:int);
grunt> DUMP test;
… Success!!
(Alva,20)
(George,30)
(Joe,10)
grunt> jest = FILTER test BY toys>10; 
grunt> DUMP jest; 
… Success!!
(Alva,20)
(George,30)
grunt>