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


##########
flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroRowDataSerializationSchema.java:
##########
@@ -139,4 +143,14 @@ public boolean equals(Object o) {
     public int hashCode() {
         return Objects.hash(nestedSchema, rowType);
     }
+
+    @Override
+    public TypeInformation<GenericRecord> getProducedType() {
+        if (schema == null) {
+            throw new IllegalStateException(
+                    "The produced type is not available before the schema is 
initialized.");
+        } else {
+            return new GenericRecordAvroTypeInfo(schema);
+        }
+    }

Review Comment:
   Do you know any convenient helper to convert `RowData` into sth extending 
TypeInformation? 



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