We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the following Avro schema
{ "type": "record", "name": "RecordName", "namespace": "some.namespace", "fields": [ { "name": "parentField", "type": { "type": "record", "name": "RecordName2", "fields": [ { "name": "recordField1", "type": [ "null", "string" ], "default": null }, { "name": "recordField2", "type": [ "null", "string" ], "default": null } ] }, "default": {} } ] }
avrohugger generates an invalid case classRecordName that tries to instantiate RecordName2 with no parameters.
RecordName
RecordName2
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": {}.
recordField1
recordField2
"default": {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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": {}
.The text was updated successfully, but these errors were encountered: