我正在使用avro4s
https://github.com/sksamuel/avro4s
我写了这段代码
implicit val schema = AvroSchema[SalesRecord]
val output = AvroOutputStream[SalesRecord](new File(outputLocation))
output.write(salesList)
output.flush
output.close但是我得到一个编译时错误。
could not find implicit value for parameter builder: shapeless.Lazy[....]
Not enough arguments for method apply 发布于 2016-02-19 23:13:53
在1.2.x中有一个bug,在一个案例类中包含了私有的‘ve,这导致了您在这里看到的错误。这在1.3.0中得到了修正,应该可以解决您的问题。
(如果不是私有的SalesRecord,您需要张贴您的对象,让我们看看,我将用一个解决方案更新这个答案)。
https://stackoverflow.com/questions/35235796
复制相似问题