Re: Can an UDF return a custom class other than case class?

2019-01-06 Thread Kurt Fehlhauer
Is there a reason why case classes won't work for your use case? On Sun, Jan 6, 2019 at 10:43 PM wrote: > Hi , > > > > Is it possible to return a custom class from an UDF other than a case > class? > > > > If so , how can we avoid this exception ? : > java.lang.UnsupportedOperationException:

Can an UDF return a custom class other than case class?

2019-01-06 Thread email
Hi , Is it possible to return a custom class from an UDF other than a case class? If so , how can we avoid this exception ? : java.lang.UnsupportedOperationException: Schema for type {custom type} is not supported Full Example : import spark.implicits._ import