Re: UDAF "not found: type UserDefinedAggregateFunction" in zeppelin 0.6.2

2016-11-02 Thread moon soo Lee
Tried the sample code in both Zeppelin and spark-shell, and got the same error. Please try following code as a workaround. import org.apache.spark.sql.expressions.MutableAggregationBuffer import org.apache.spark.sql.expressions.UserDefinedAggregateFunction class GeometricMean extends org.apache.

UDAF "not found: type UserDefinedAggregateFunction" in zeppelin 0.6.2

2016-10-29 Thread Manjunath, Kiran
I am trying the below sample code Code %spark import org.apache.spark.sql.expressions.MutableAggregationBuffer import org.apache.spark.sql.expressions.UserDefinedAggregateFunction class GeometricMean extends UserDefinedAggregateFunction { def inputSchema: org.apache.spark.sql.types.StructType