Pig UDFs should have life cycle methods
---------------------------------------
Key: PIG-1807
URL: https://issues.apache.org/jira/browse/PIG-1807
Project: Pig
Issue Type: Improvement
Components: impl
Affects Versions: 0.9.0
Reporter: Julien Le Dem
A possible implementation could be:
init(UDFContext);
destroy(UDFContext);
This would enable initializing UDFs without requiring static calls in the
constructor.
Static calls and singletons is one of the reasons pig can not execute different
pig scripts in different threads.
Some useful information to add in the UDFContext:
- inputSchema
- whether the UDF is instantiated on the client side (parsing) or on a slave
(runtime).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.