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

Switch to Threaded View
Avro >> mail # user >> Serializing nested records

Copy link to this message
Re: Serializing nested records
I think the problem is with the following union in your schema:

    "type": [{ "type": "array", "items": "TransactionStaticComponent" }],
"default": "null"

The union only has one type, that of the array, and does not also include
"null" which is necessary for the default value of null to be valid. The
following might be worth a try:

   "type": [{ "type": "array", "items": "TransactionStaticComponent" },
"null"], "default": "null"

View this message in context: http://apache-avro.679487.n3.nabble.com/Serializing-nested-records-tp4025992p4025996.html
Sent from the Avro - Users mailing list archive at Nabble.com.