Description
For a case class that has a field of type Set, createDataFrame() method throws an exception saying "Schema for type Set is not supported". Exception is raised by the org.apache.spark.sql.catalyst.ScalaReflection class where Array, Seq and Map types are supported but Set is not. It would be nice to support Set here by default instead of having to write a custom Encoder.
Attachments
Issue Links
- duplicates
-
SPARK-21204 RuntimeException with Set and Case Class in Spark 2.1.1
- Resolved