It gives ArrayIndexOutOfBound exception, right at the index of the new field added in 2).
SpecificData.get().deepCopy(version2.SCHEMA$, genericRecordAtV1)
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c6993d85-3822-461a-967a-34d81b16b1c4%40googlegroups.com.
Yes, I use specific.avro.reader=true and it doesn't require any copying. You can just cast the result of IncomingMessageEnvelope.getMessage()
On Thu, Mar 24, 2016 at 12:42 AM, <gerard...@dizzit.com> wrote:
If you let the conversion over by avro, by setting specific.avro.reader=true in the client, does it work as expected?--
On Tuesday, March 22, 2016 at 9:13:08 PM UTC+1, George @paytm.com wrote:Stacktrace:java.lang.ArrayIndexOutOfBoundsException: 23at org.apache.avro.generic.GenericData$Record.get(GenericData.java:135)at org.apache.avro.generic.GenericData.getField(GenericData.java:580)at org.apache.avro.generic.GenericData.getField(GenericData.java:595)at org.apache.avro.generic.GenericData.deepCopy(GenericData.java:970)
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.