On the sqlcontext or hivesqlcontext , you can register the function as udf
below:
*hiveSqlContext.udf.register("func_name",func(_:String))*

Thanks
Deepak

On Wed, Jan 18, 2017 at 8:45 AM, Sirisha Cheruvu <siri8...@gmail.com> wrote:

> Hey
>
> Can yu send me the source code of hive java udf which worked in spark sql
> and how yu registered the function on spark
>
>
> On Jan 17, 2017 2:01 PM, "Sirisha Cheruvu" <siri8...@gmail.com> wrote:
>
> Hi
>
> Anybody has a test and tried generic udf with object inspector
> implementaion which sucessfully ran on both hive and spark-sql
>
> please share me the git hub link or source code file
>
> Thanks in advance
> Sirisha
>
>
>


-- 
Thanks
Deepak
www.bigdatabig.com
www.keosha.net

Reply via email to