I would like to write an encoder for a Row type in DataSet, for a map operation that I am doing. Essentially, I do not understand how to write encoders.
Below is an exam
I had the same problem... Encoders.kryo(Row.class)) worked for me.
Encoders.kryo(Row.class))
As a bonus, the Apache Spark tuning docs refer to Kryo it since it’s faster at serialization "often as much as 10x":
https://spark.apache.org/docs/latest/tuning.html