davidradl commented on code in PR #27499:
URL: https://github.com/apache/flink/pull/27499#discussion_r2753639654


##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroDeserializationSchema.java:
##########
@@ -174,8 +227,15 @@ public T deserialize(@Nullable byte[] message) throws 
IOException {
         inputStream.setBuffer(message);
         Schema readerSchema = getReaderSchema();
         GenericDatumReader<T> datumReader = getDatumReader();
-
-        datumReader.setSchema(readerSchema);
+        if (isFastReaderEnabled()) {
+            // open fast read
+            Schema schema = datumReader.getSchema();

Review Comment:
   I am curious why do we issue 
   `Schema schema = datumReader.getSchema();` for the fast read case? Is this 
not appropriate when fast reading is not enabled   



-- 
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]

Reply via email to