Skip to content

Commit

Permalink
Expand bounded range test assertions to handle different order of ope…
Browse files Browse the repository at this point in the history
…rations that arise from threading (#2677)
  • Loading branch information
apmoriarty authored Dec 30, 2024
1 parent 1b968ba commit 65f81ae
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ public void testInvalidDataTypeFilter() {
test(lookup, "FIELD_A");
}

@Test
public void testWithNoBackingData() {
withDateRange("20240701", "20240709");
BoundedRangeIndexLookup lookup = createLookup("FIELD_A", "absent-lower", "absent-upper");
test(lookup, "FIELD_A");
}

private void test(BoundedRangeIndexLookup lookup, String field) {
lookup.submit();

Expand Down Expand Up @@ -305,7 +312,12 @@ public void largeRowInBoundedRangeTest() throws TableNotFoundException {
assertEquals(10001, scanner.getSeekCount()); // with new iterator this is initial seek + one seek per unique row in the range
// this represents data collapsed and sent back to the client by the WholeRowIterator
assertEquals(0, scanner.getNextCount()); // no next cals with seeking filter
assertTrue(map.get("FOO").isThresholdExceeded());
assertNotNull(map);
if (map.containsKey("FOO")) {
assertTrue(map.get("FOO").isThresholdExceeded());
} else {
assertTrue(map.isEmpty());
}
verifyAll();
}
}

0 comments on commit 65f81ae

Please sign in to comment.