Re: [Spark1.3] UDF registration issue

2015-04-13 Thread Reynold Xin
You can do this: strLen = udf((s: String) => s.length()) cleanProcessDF.withColumn("dii",strLen(col("di"))) (You might need to play with the type signature a little bit to get it to compile) On Fri, Apr 10, 2015 at 11:30 AM, Yana Kadiyska wrote: > Hi, I'm running into some trouble trying to r

Re: [Spark1.3] UDF registration issue

2015-04-13 Thread Takeshi Yamamuro
Hi, It's a syntax error in Spark-1.3. The next release of spark supports the kind of UDF calls in DataFrame. See a link below. https://issues.apache.org/jira/browse/SPARK-6379 On Sat, Apr 11, 2015 at 3:30 AM, Yana Kadiyska wrote: > Hi, I'm running into some trouble trying to register a UDF: >