I think we do support 0 arg UDFs:
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L2165

How are you using UDFs?


On Tue, Jul 28, 2015 at 2:15 AM, Sachith Withana <swsach...@gmail.com>
wrote:

> Hi all,
>
> Currently I need to support custom UDFs with sparkSQL queries which have
> no parameters.
>
> ex: now() : which returns the current time in milliseconds.
>
> Spark currently have support for UDFs having 1 or more parameters but does
> not contain a UDF0 Adaptor. Is there a way to implement this?
>
> Or is there a way to support custom keywords such as "now" which would act
> as an custom UDF with no parameters.
>
>
> --
> Thanks,
> Sachith Withana
>
>

Reply via email to