apache pig - How to display declared variable in PIG -
i'm wondering if there's way display declared variable in pig - test purpose (without udf)?
so how display $date:
%declare date `date +%s`;
you can call script dry run using following:
pig -x local -r my_pig_script.pig
which output my_pig_script.pig.substituted
in working directory. if file, variables declared replaced values. gives sort of "precompile" @ job before send cluster.
hope helps!
edit:
the dry run debug script , identify compile errors ahead of actual run.
Comments
Post a Comment