Hi all,
I need the doc attribute to be printed, but it won't. (I know that the doc
is only allowed on records, fields and enums).
org.apache.avro.Schema avroSchema =
org.apache.avro.Schema
.parse("{ \"type\": \"enum\", \"doc\": \"test\", \"name\":
\"abc\", \"symbols\": [ \"aa\" ]}");
System.out.println(avroSchema.getDoc());
System.out.println(avroSchema.toString());
outputs:
test
{"type":"enum","name":"abc","symbols":["aa"]}
So the doc has been omitted. Is this a bug or a feature?
Regards, Tom
--
Tom Burger | [email protected] | +31 (0)62 412 20 27
http://www.linkedin.com/in/tvburger