Skip to content

Task/migrate grouping required filter functions test#3682

Draft
apmoriarty wants to merge 3 commits into
integrationfrom
task/migrate-grouping-required-filter-functions-test
Draft

Task/migrate grouping required filter functions test#3682
apmoriarty wants to merge 3 commits into
integrationfrom
task/migrate-grouping-required-filter-functions-test

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

No description provided.

apmoriarty and others added 2 commits July 10, 2026 11:18
…ryTest

Uses ShardQueryLogic (EventQuery bean), extends AbstractQueryTest.
Results are a DefaultEventQueryResponse (not raw Documents), so
executeQuery() is overridden the same way as the original's
getQueryResponse() helper. ShardRange/DocumentRange split dropped in
favor of a single DOCUMENT-range ingest (GroupingFiltersIngest already
calls IndexIngestUtil internally).

Empirically, the IndexIngestUtil-derived NO_UID_INDEX/TRUNCATED_INDEX
tables don't correctly locate results for this dataset's
field-indexed (non-full-table-scan) queries, so getIndexTableNames()
is narrowed to the raw SHARD_INDEX only, matching the precedent set by
IvaratorInterruptTest for narrowing index table variants when derived
tables don't apply. All 5 tests pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
lbschanno
lbschanno previously approved these changes Jul 10, 2026
@apmoriarty apmoriarty marked this pull request as draft July 13, 2026 08:58
The scan authorization used by IndexIngestUtil.write() to build the
NO_UID_INDEX/TRUNCATED_INDEX/day/year index variants from SHARD_INDEX was
Authorizations("ALL") only, but every SHARD_INDEX entry in this dataset is
written with a compound visibility of ALL&E or ALL&I. That mismatch meant
the derived-table scan couldn't see any of the source rows, leaving the
derived index tables effectively empty for this fixture and causing the
equality-lookup tests to return zero events whenever a derived table was
selected. Widening auths to ALL,E,I fixes the derivation, so the
getIndexTableNames() override that narrowed
GroupingRequiredFilterFunctionsIntegrationTest to the raw SHARD_INDEX table
is no longer needed and is removed; all 5 tests now pass against every
index table variant.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants