jfsii opened a new pull request #1876:
URL: https://github.com/apache/hive/pull/1876


   Change-Id: Ic6ddbf9ffb14c293caadf1f8ec1e7ec0f9291a31
   
   ### What changes were proposed in this pull request?
   UDF configure does not get called if fetch task conversion happens.
   This attempts to resolve this by calling configure with a dummy 
MapredContext.
   It is a bit ugly in that MapredContext seems to be legacy baggage with 
various members that do not make sense for a variety of engines and code.
   
   
   ### Why are the changes needed? Some custom UDFs are designed with the 
expectation that configure is called in all instances. Users sometimes use it 
to inspect configuration values or to set new values to propagate to the 
evaluate method or to do one time setup.
   
   ### Does this PR introduce _any_ user-facing change? Yes - it will now call 
configure in cases where configure was not called before.
   
   
   ### How was this patch tested? Added udf_configure.q and manual testing
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to