You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by pooja mehta <sp...@gmail.com> on 2016/07/17 16:37:45 UTC

How to use Spark scala custom UDF in spark sql CLI or beeline client

Hi,

How to Use Spark scala custom UDF in spark sql CLI or Beeline client.
with sqlContext we can register a UDF like this:
 sqlContext.udf.register("sample_fn", sample_fn _ )
What is the way to use UDF in Spark sql CLI or beeline client.

Thanks
Pooja