[ 
https://issues.apache.org/jira/browse/HIVE-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146703#comment-13146703
 ] 

Jonathan Chang commented on HIVE-2561:
--------------------------------------

I believe (and I will check this tomorrow), that UDFs have access to the config 
during the init phase which happens on the local machine.  There is an 
outstanding JIRA to make the config available to the running UDFs but it's not 
needed here since all the ADDs happen before execution.  I'll probably end up 
adding some utility functions to make getting these values easier.

So for ADD FILE and the like, you should not refer to the absolute path in your 
UDF.  In essence, ADD FILE is copying those paths to some temp directory which 
is the working directory of the UDF.  
                
> Add an annotation to UDFs to allow them to specify additional FILE/JAR 
> resources necessary for execution
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2561
>                 URL: https://issues.apache.org/jira/browse/HIVE-2561
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Jonathan Chang
>            Assignee: Jonathan Chang
>
> Often times UDFs will have dependencies to external JARs/FILEs.  It makes 
> sense for these to be encoded by the UDF (rather than having the caller 
> remember the set of files that need to be ADDed).  Let's add an annotation to 
> UDFs which will cause these resources to be auto-added.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to