afedulov commented on code in PR #23395:
URL: https://github.com/apache/flink/pull/23395#discussion_r1369334106


##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroDeserializationSchema.java:
##########
@@ -53,22 +55,25 @@ public class AvroDeserializationSchema<T> implements 
DeserializationSchema<T> {
      * schema.
      *
      * @param schema schema of produced records
+     * @param encoding Avro serialization approach to use for decoding
      * @return deserialized record in form of {@link GenericRecord}
      */
-    public static AvroDeserializationSchema<GenericRecord> forGeneric(Schema 
schema) {
-        return new AvroDeserializationSchema<>(GenericRecord.class, schema);
+    public static AvroDeserializationSchema<GenericRecord> forGeneric(

Review Comment:
   This API is public and all changes need to be backwards compatible. 



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to