Re: GenericRowWithSchema cannot be cast to java.lang.Double : UDAF error

2016-11-04 Thread Manjunath, Kiran
scala.collection.mutable.WrappedArray.toArray(WrappedArray.scala:73) at GeometricMean.evaluate(:51) Regards, Kiran From: "Manjunath, Kiran" Date: Saturday, November 5, 2016 at 2:16 AM To: "user@spark.apache.org" Subject: GenericRowWithSchema cannot be cast to java.lang.Doubl

GenericRowWithSchema cannot be cast to java.lang.Double : UDAF error

2016-11-04 Thread Manjunath, Kiran
I am trying to implement a sample “sum” functionality over rolling window. Below code may not make sense (may not be efficient) but during the course of other major implementation, have stumbled on below error which is blocking. Error Obtained - “GenericRowWithSchema cannot be cast to java.lang.