avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robturner <robairrob...@gmail.com>
Subject Re: Serializing nested records
Date Mon, 21 Jan 2013 22:29:10 GMT
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.

View raw message