flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From greghogan <...@git.apache.org>
Subject [GitHub] flink pull request: Flink 3691 extend avroinputformat to support g...
Date Mon, 25 Apr 2016 17:02:05 GMT
Github user greghogan commented on a diff in the pull request:

    --- 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) {
     		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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message