Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Incorrect Json schema generated for @java_class


Copy link to this message
-
Incorrect Json schema generated for @java_class
For the IDL field:

@java_class("java.util.ArrayList") array<int> arrayOfInts;

the JSON schema generated by the avro-maven-plugin is

{\"name\":\"arrayOfInts\",\"type\":{\"type\":\"array\",\"items\":\"int\",\"java_class\":\"java.util.ArrayList\"}}

Shouldn't it be generated in JSON as java-class (with hypen instead of
underscore) instead of java_class? Because of this reading from avro file is
not working.
--
View this message in context: http://apache-avro.679487.n3.nabble.com/Incorrect-Json-schema-generated-for-java-class-tp4026430.html
Sent from the Avro - Users mailing list archive at Nabble.com.
+
Doug Cutting 2013-02-28, 17:19
+
Alexandre Normand 2013-02-28, 17:25
+
Doug Cutting 2013-02-28, 18:04
+
Alexandre Normand 2013-02-28, 18:36
+
Doug Cutting 2013-02-28, 21:58
+
Alexandre Normand 2013-02-28, 22:08
+
avronewbie 2013-02-28, 20:10
+
Doug Cutting 2013-02-28, 21:51