On Thu, Jul 21, 2016 at 4:53 AM, Divya Gehlot <[email protected]> wrote:
> To be very specific I am looking for UDFs syntax for example which takes
> String as parameter and returns integer .. how do we define the return type
val f: String => Int = ???
val myUDF = udf(f)
or
val myUDF = udf[String, Int] { ??? }
or
val myUDF = udf { (s: String) => ??? }
Jacek
---------------------------------------------------------------------
To unsubscribe e-mail: [email protected]
