Github user greghogan commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1920#discussion_r60952095
  
    --- Diff: 
flink-batch-connectors/flink-avro/src/test/java/org/apache/flink/api/io/avro/AvroRecordInputFormatTest.java
 ---
    @@ -289,6 +290,119 @@ public void testDeserializeToSpecificType() throws 
IOException {
                }
        }
     
    +   /**
    +    * Test if the AvroInputFormat is able to properly read data from an 
Avro
    +    * file as a GenericRecord.
    +    * 
    +    * @throws IOException,
    +    *             if there is an exception
    +    */
    +   @SuppressWarnings("unchecked")
    +   @Test
    +   public void testDeserialisationGenericRecord() throws IOException {
    +           Configuration parameters = new Configuration();
    +
    +           AvroInputFormat<GenericRecord> format = new 
AvroInputFormat<GenericRecord>(new Path(testFile.getAbsolutePath()),
    +                           GenericRecord.class);
    +           try {
    +                   format.configure(parameters);
    --- End diff --
    
    Should we explicitly set reuse to `true`?


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

Reply via email to