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

Xuefu Zhang commented on HIVE-20276:
------------------------------------

[~hardik1808] Could you give some code examples of the usage of your UDF in 
your code? In Hive, one usually registers a UDF and uses it in the query. Thus, 
I'm not sure what you meant by calling the UDF in your code or spark session 
object.

> Hive UDF class getting Instantiated for each call of function
> -------------------------------------------------------------
>
>                 Key: HIVE-20276
>                 URL: https://issues.apache.org/jira/browse/HIVE-20276
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.1, 2.1.1
>            Reporter: Hardik Trivedi
>            Priority: Blocker
>
> * I have created One Hive UDF class and register its function in spark.
>  * In hive query inside spark session object  i call this function
>  * Now when i run my code i observe on each time when function called it 
> create new instance of UDF class.
>  * Is it normal behavior? On each call should it create new instance?
>  * Is it version specific issue? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to