spark.SparkException: Job failed: ResultTask(0, 0) failed: ExceptionFailure(com.esotericsoftware.kryo.KryoException: java.lang.RuntimeException: java.lang.ArrayStoreException: org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils$PrimitiveTypeEntry
Serialization trace:
ois (org.apache.hadoop.hive.serde2.objectinspector.StandardUnionObjectInspector)
fieldObjectInspector (org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector$MyField)
fields (org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector)
array (scala.collection.mutable.ArrayBuffer))
You can find the code for PrimitiveTypeEntry here (You can find all the other relevant classes in the same github repo too):