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

    https://github.com/apache/drill/pull/877#discussion_r128564452
  
    --- Diff: 
exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestParquetMetadataCache.java
 ---
    @@ -446,10 +447,25 @@ public void testMetadataCacheAbsolutePaths() throws 
Exception {
         }
       }
     
    +  @Test
    --- End diff --
    
    Two test cases are added: `testFutureUnsupportedMetadataVersion()` and 
`testCorruptedMetadataFile()`. 
    
    Test first one is the test case for the future unsupported versions that is 
not in the MetadataVersion.SUPPORTED_VERSIONS list. In test case `v4` is used 
for now (since the last version is `v3_1`). There was `JsonMappingException` 
earlier. 
    
    Other test case uses metadata file with corrupted json part. There was 
`JsonParseException` earlier. 
    
    Note: To avoid any `json` deserializing exception we catch 
`JsonProcessingException` (parent class of the above ones).


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

Reply via email to