avrohugger generates an invalid case classRecordName that tries to instantiate RecordName2 with no parameters.
final case class RecordName(var parentField: RecordName2 = new RecordName2(, )) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(new RecordName2(, ))
The generator seems to work fine if either recordField1 or recordField2 is removed and/or "default": {}.
For the following Avro schema
avrohugger generates an invalid case class
RecordName
that tries to instantiateRecordName2
with no parameters.The generator seems to work fine if either
recordField1
orrecordField2
is removed and/or"default": {}
.