spratt commented on code in PR #28715:
URL: https://github.com/apache/flink/pull/28715#discussion_r3572224829
##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroDeserializationSchema.java:
##########
@@ -164,6 +165,12 @@ AvroEncoding getEncoding() {
return encoding;
}
+ void resetDecoder() throws IOException {
+ if (encoding == AvroEncoding.BINARY) {
Review Comment:
Well caught! My investigation showed that the scenario could be hit
independently in the base class and in the registry-specific case, so I've
included tests and fixes for both.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]