For a record, we are having a field like below
{
"name": "errorType",
"type": [
"null",
"com.abc.xyz.ErrorEnum"
],
"default": null
}
But we are getting exception for default value
Caused by: org.apache.avro.AvroTypeException: Invalid default for field errorType: "null" not a ["null",{"type":"enum","name":"ErrorEnum","namespace":"com.abc.xyz","symbols":["INFO","ERROR","UNKNOWN"]}]
This was working well with Avro 1.8.2 but causing issue with Avro 11