avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giri P <gpatc...@gmail.com>
Subject Not able to resolve union for array type
Date Fri, 03 Jun 2016 16:54:14 GMT
Hi,

I'm getting below error when I try to insert null into union of array

Caused by: org.apache.avro.UnresolvedUnionException: Not in union
["null",{"type":"array","items":{"type":"record","name":"DeMatchedAttr","namespace":"cp","fields":[{"name":"id","type":"long","doc":"Attribute
id"},{"name":"updateDate","type":"long","doc":"Update date of the
attribute"},{"name":"value","type":"string","doc":"Value of the
attribute"}]}}]: null

Is there any issue with the schema ?

Thanks for the help

-Giri

Mime
View raw message