My best try to create the schema -
{
"name": "testarray",
"type": {
"type":"array",
"items": {
"type": {
"type":"array",
"items": {
"name": "temp",
"type":"long"
}
}
}
}
}
But the schema parser throws this error -
---
Exception in thread "main" org.apache.avro.SchemaParseException: No type: {"name":"testarray","type":{"type":"array","items":{"type":{"type":"array","items":{"name":"temp","type":"long"}}}}}
at org.apache.avro.Schema.getRequiredText(Schema.java:1372)
at org.apache.avro.Schema.parse(Schema.java:1231)
at org.apache.avro.Schema$Parser.parse(Schema.java:1031)
at org.apache.avro.Schema$Parser.parse(Schema.java:996)
at com.flipkart.de.App.main(App.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Process finished with exit code 1
---
Is there something wrong with the schema I've written, or is this not supported in Avro?
Any help would be much appreciated.