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

2019-01-07 Thread Muthu Jayakumar
d Message > From : em...@yeikel.com > To : kfehl...@gmail.com > Date : Mon, 07 Jan 2019 04:11:22 -0800 > Subject : Re: Can an UDF return a custom class other than case class? > > > In this case I am just curious because I'd like to know if it is possible. > > At

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

2019-01-07 Thread yeikel valdes
Forwarded Message >From : em...@yeikel.com To : kfehl...@gmail.com Date : Mon, 07 Jan 2019 04:11:22 -0800 Subject : Re: Can an UDF return a custom class other than case class? In this case I am just curious because I'd like to know if it is possible. At the s

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