Re: Unable to get Avro schema alias working for an array item

2022-01-15 Thread Spencer Lu
We're using Avro 1.7.4 with Apache Flume 1.9.0, and have written a Flume interceptor in Java to handle the deserializing with the old schema and the reserializing with the new schema. In the interceptor, we have the following code to deserialize: GenericDatumReader reader = new

Re: Unable to get Avro schema alias working for an array item

2022-01-15 Thread Spencer Nelson
This should work according to the spec. What language and Avro library are you using, and with what version? Aliases are a bit tricky to use correctly. When deserializing, you may need to indicate the writer’s schema as using oldFieldName1 and oldFieldName2, while the reader schema uses

Unable to get Avro schema alias working for an array item

2022-01-15 Thread Spencer Lu
Hi everyone, We have an application that receives Avro data, and it needs to rename certain fields in the data before sending it downstream. The application is using the following Avro schema to send the data downstream (note that 2 of the fields have aliases defined): {