【发布时间】:2016-12-15 00:32:23
【问题描述】:
我想实现一个通用编码器,因为我在 Spark 1.6 上有一个小项目,当我将它迁移到 spark 2.0 时,它给了我警告和错误 的
Unable to find encoder for type stored in a Dataset. Primitive types (Int, String, etc) and Product types (case classes) are supported by importing spark.implicits._ Support for serializing other types will be added in future releases.
在很多地方,因此我想实现一个通用编码器并将其放入包对象中。我只想知道如何在 spark 2.0 中实现通用编码器?
【问题讨论】:
标签: scala apache-spark apache-spark-sql encoder