Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Bounded Range test assertions #2677

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
}
Loading