scala - Avro4S : Could not find implicit value for parameter builder -


i using avro4s

https://github.com/sksamuel/avro4s

i wrote code

implicit val schema = avroschema[salesrecord] val output = avrooutputstream[salesrecord](new file(outputlocation)) output.write(saleslist) output.flush output.close 

but compile time error

could not find implicit value parameter builder: shapeless.lazy[....] not enough arguments method apply  

there bug in 1.2.x private vals in case class caused error you've seen here. that's fixed in 1.3.0 , should solve problem.

(if it's not private vals, you'd need post salesrecord object take @ , i'll update answer solution).


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -