Hi Reynold, I'm implementing the interfaces given here ( https://github.com/apache/spark/tree/master/sql/core/src/main/java/org/apache/spark/sql/api/java ). But currently there is no UDF0 adapter.
Any suggestions? I'm new to Spark and any help would be appreciated. -- Thanks, Sachith Withana On Tue, Jul 28, 2015 at 10:18 PM, Reynold Xin <r...@databricks.com> wrote: > 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 >> >> >