Github user greghogan commented on a diff in the pull request:
https://github.com/apache/flink/pull/1920#discussion_r60948974
--- Diff:
flink-batch-connectors/flink-avro/src/main/java/org/apache/flink/api/java/io/AvroInputFormat.java
---
@@ -51,11 +62,13 @@
private transient FileReader<E> dataFileReader;
private transient long end;
-
+
+ private boolean isGenericRecord = false;
public AvroInputFormat(Path filePath, Class<E> type) {
super(filePath);
this.avroValueType = type;
+ this.isGenericRecord =
org.apache.avro.generic.GenericRecord.class == avroValueType;
--- End diff --
Should this be testing class equality or Class.isAssignableFrom?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---