Hi all,

I have a problem where I need to limit the number of results generated by
pig script based on some condition.

say,
 if ( $x == 0 )
  then do not limit #results
 else:
   limited_result = LIMIT results $x ;

(here x comes from cmd line)

How can I achieve this with a single Pig script ?

Thanks in advance,
Souri

Reply via email to