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:
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