Fix testSubfieldValue in OrcTester
When filtering the expected rows for ARRAY type, null rows would be
mistakenly filtered out when the filter is not null but nullAllowed
is true. This commit fixes this problem by calling filter.testNull().
@@ -1101,7 +1101,7 @@ public class OrcTester
if (nestedType instanceof ArrayType) {
assertTrue(pathElement instanceof Subfield.LongSubscript);
if (nestedValue == null) {
- return filter == IS_NULL;
+ return filter.testNull();
}
int index = toIntExact(((Subfield.LongSubscript) pathElement).getIndex()) - 1;
nestedType = ((ArrayType) nestedType).getElementType();
