I have a question about PIG Latin. Is there any way how to invoke some pig script from the other pig script?
I know it is possible to run user defined functions (UDFs) like:
REGISTER myudfs.jar;
A = LOAD 'student_data' AS (name: chararray, age: int, gpa: float);
B = FOREACH A GENERATE myudfs.UPPER(name);
DUMP B;
But it is not working for pig script. We are counting some different customer parameters and for readibility and reuse it would be great to load some pig snippets, something like:
REGISTER somepigscript.pig;
LOAD somepigscript.pig;
Do you know if there is any functionality like this? Or any UDF?
Thank you and have a good day...