Avro schema for nested arrays definition doesn't parse: Schema:
{"type": "array", "items": {"name": "Rec1", "type": "record", "fields" : [ {"type": "array", "items": {"name": "Rec2", "type":"record", "fields" : [ {"name": "Scalar", "type": "string"}]}}]}} Result: No field name: {"type":"array","items":{"name":"Rec2","type":"record","fields":[{"name":"Scalar","type":"string"}]}} org.apache.avro.SchemaParseException: No field name: {"type":"array","items":{"name":"Rec2","type":"record","fields":[{"name":"Scalar","type":"string"}]}} at org.apache.avro.Schema.getRequiredText(Schema.java:981) at org.apache.avro.Schema.parse(Schema.java:907) at org.apache.avro.Schema.parse(Schema.java:934) at org.apache.avro.Schema.parse(Schema.java:813) What's wrong? Thank you in advance, Alex.