Hi,
The following schema is giving a parse error using the Java libraries, but
in the C implementation it is working fine:
[
{"type": "record", "name": "UserDefinedType", "fields": [{"name":
"somefield", "type": "long"}]},
{"type": "array", "items": [{"type": "UserDefinedType"}] }
]
The error:
org.apache.avro.SchemaParseException: Type not supported: UserDefinedType
This version works fine in the Java implementation:
[
{"type": "record", "name": "UserDefinedType", "fields": [{"name":
"somefield", "type": "long"}]},
{"type": "array", "items": ["UserDefinedType"] }
]
It is my understanding from the specs that either versions should be parsed
without erros:
A JSON string, naming a defined type.
A JSON object, of the form:
{"type": "typeName" ...attributes...}
Thanks,
Thiago