I call a pig script
pig -param DATE=$date ~/bin/script.pig
inside of the pig script I filter records thru a perl udf
DEFINE parser `parser.pl` SHIP ( 'parser.pl' );
------------------------------------------------------
raw_records = LOAD '/logs/$DATE';
parsed_recs = STREAM raw_records THROUGH parser;
A simple question "How do I access the date parameter inside of the perl
script?"
Thanks
Allan.