-1

I'm trying to explore lot in Spark 2.0, so i'm curious to know "When will encoders for map type be available ?"

Thanks for your suggestion in advance. Vinoth.

1 Answers1

-1

For primitive types and case classes there are available since 1.6 like:

implicit val enc: Encoder[Map[String, Int]] = ExpressionEncoder()

For any other objects just use Kryo:

implicit val enc = org.apache.spark.sql.Encoders.kryo[Map[Any, Any]]