How to create a schema for spark from a trait? Considering a trait:
trait A{
val name:String
val size:String
}
As :
Encoders.product[A].schema
gives:
Error:type arguments do not conform to method product's type parameter bounds [T <: Product]
Also the number of fields will be more then the limit of case class parameters > 200