pgaref commented on a change in pull request #634:
URL: https://github.com/apache/orc/pull/634#discussion_r564692139
##########
File path:
java/mapreduce/src/test/org/apache/orc/mapred/TestOrcFileEvolution.java
##########
@@ -232,10 +233,23 @@ public void testListEvolution() {
addSarg);
}
+ @Test
+ public void testMissingColumnFromReaderSchema() {
+ // Expect failure if the column is missing from the reader schema, as
column a that is added
+ // by the SArg is missing from the reader schema
+ Assert.assertThrows("Field a not found in", IllegalArgumentException.class,
+ () -> checkEvolution("struct<b:int,c:string>",
Review comment:
style?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]