sahara-extra/edp-examples/pig-job/example.pig

4 lines
161 B
Pig

A = load '$INPUT' using PigStorage(':') as (fruit: chararray);
B = foreach A generate com.hadoopbook.pig.Trim(fruit);
store B into '$OUTPUT' USING PigStorage();