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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -