I have a problem where I need to limit the number of results generated by
pig script based on some condition.
if ( $x == 0 )
then do not limit #results
limited_result = LIMIT results $x ;
(here x comes from cmd line)
How can I achieve this with a single Pig script ?
Thanks in advance,