AvroTypeException with "Expected" case : field name is not provided

2019-09-13 Thread Yanna elina
Hi guys , in 1.9 when there is exception like this *"org.apache.avro.AvroTypeException: Expected start-union. Got END_OBJECT"* . and* Using genericRecord = reader.read(null, decoder);* its could be nice to provide the field in error. it could be more easy to debug the schema. thx !

it's still there is not workaround on 1.9.1 to handle missing field in json ?

2019-09-16 Thread Yanna elina
HI guys , I need to convert data received from API-REST to Avro GenericRecord. The schema is defined from the outside I do not want to use POJO java I do not want to create schema on the fly either because I want to be able to control the type before the base injection I try all cases with the de