You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Divya Gehlot <di...@gmail.com> on 2016/09/08 08:55:01 UTC

Calling udf in Spark

Hi,

Is it necessary to import sqlContext.implicits._ whenever define and
call UDF in Spark.


Thanks,
Divya

Re: Calling udf in Spark

Posted by Deepak Sharma <de...@gmail.com>.
No its not required for UDF.
Its required when you convert from rdd to df.
Thanks
Deepak

On 8 Sep 2016 2:25 pm, "Divya Gehlot" <di...@gmail.com> wrote:

> Hi,
>
> Is it necessary to import sqlContext.implicits._ whenever define and
> call UDF in Spark.
>
>
> Thanks,
> Divya
>
>
>