You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Barani Daran <ba...@gmail.com> on 2014/08/19 07:36:12 UTC
How to pass Columns itself as parameter in PIG scripts
Hello everyone,
In my PIG script i want to pass the column position as parameter, please
let me know how can i achieve that
a = load '$path' using PigStorage('');
b = group a by $CountColPos;
c = foreach b generate group,COUNT(a);
d = ORDER c by $0;
STORE d INTO '$TempCountDir';
Here how can i pass the value for $CountColPos, using the -p option from
comma
Thanks everyone.
--
*Regards,Barani*