pawel-big-lebowski commented on code in PR #26507:
URL: https://github.com/apache/flink/pull/26507#discussion_r2060029529


##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroSerializationSchema.java:
##########
@@ -220,4 +226,22 @@ public boolean equals(Object o) {
     public int hashCode() {
         return Objects.hash(recordClazz, schema);
     }
+
+    /**
+     * Returns the type information of the produced type. Depending on the 
type of the record,
+     * whether it is a specific or generic record, the type information will 
be different. It can be
+     * either a {@link AvroTypeInfo} or a {@link GenericRecordAvroTypeInfo}.
+     *
+     * @return TypeInformation of the produced type
+     */
+    @Override
+    public TypeInformation getProducedType() {

Review Comment:
   The common type for both cases is `ResultTypeQueryable<GenericContainer>` as 
both `SpecificRecord` and `GenericRecord` extend `GenericContainer`. However, I 
could not make it work for `GenericRecordAvroTypeInfo` to be casted into 
`TypeInformation<GenericContainer>`



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