dongjoon-hyun commented on a change in pull request #996:
URL: https://github.com/apache/orc/pull/996#discussion_r780506796
##########
File path: java/core/src/test/org/apache/orc/impl/TestRecordReaderImpl.java
##########
@@ -2449,4 +2449,23 @@ public void testSargApplier() throws Exception {
f2.setAccessible(true);
assertFalse((boolean)f2.get(applier1));
}
+
+ @Test
+ public void testRgEndOffset() throws IOException {
+ Configuration conf = new Configuration();
+ Path filePath = new Path(getClass().getClassLoader().
+ getSystemResource("orc-small-compression-size.orc").getPath());
+ Reader reader = OrcFile.createReader(filePath,
OrcFile.readerOptions(conf));
+
+ SearchArgument sarg = SearchArgumentFactory.newBuilder()
+ .startNot()
+ .lessThan("x", PredicateLeaf.Type.LONG, 120000L)
+ .end().build();
+ VectorizedRowBatch batch = reader.getSchema().createRowBatch();
+ try (RecordReader rows = reader.rows(reader.options().searchArgument(sarg,
null))) {
+ while (rows.nextBatch(batch)) {
+ // do nothing but check all the data can be read
Review comment:
Could you check the actual values to ensure they are read correctly?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]