I have a question about PIG Latin. Is there any way how to call a pig script from another pig script?
I know that you can run custom functions (UDF), for example:
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 does not work for the pig script. We count some various client parameters, and for reading and reusing it would be great to load some swing fragments, for example:
REGISTER somepigscript.pig; LOAD somepigscript.pig;
Do you know if there is such functionality? Or any UDF?
Thank you, you have a nice day ...
source share