Using the following schema:
{
"type": "record",
"name": "test",
"fields": [
{"name": "a", "type": ["long","null"] }
]
}
rsgen-avro errors with:
Templating error: Invalid Schema::Null not in first position on an UnionSchema variants
I don't see a requirement in the avro spec about this (we do have additional requirements when we have a default value, but this doesn't apply here).