Skip to content

Migrate ExceededOrThresholdMarkerJexlNodeTest to AbstractQueryTest#3683

Open
apmoriarty wants to merge 1 commit into
integrationfrom
task/migrate-exceeded-or-threshold-marker-jexl-node-test
Open

Migrate ExceededOrThresholdMarkerJexlNodeTest to AbstractQueryTest#3683
apmoriarty wants to merge 1 commit into
integrationfrom
task/migrate-exceeded-or-threshold-marker-jexl-node-test

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

Same shape as ContentFunctionQueryTest: clones a per-test ShardQueryLogic to vary ivarator/threshold settings, so getLogic() returns a mutable currentLogic field. executeQuery() and getSettings() are overridden the same way (DefaultEvent results via getTransformIterator(), fixed non-yyyyMMdd date format). The getQueryRanges() plan-inspection helper (used by two tests to assert on pushdown range structure, independent of query execution) is kept as a self-contained method using the original 4-arg ShardQueryConfiguration.create()+initialize() flow, since it doesn't go through AbstractQueryTest's execute/assert machinery at all.

Ingest already called IndexIngestUtil with a single fixed dataset (no range concept), so no ingest changes needed. All 8 tests pass.

Same shape as ContentFunctionQueryTest: clones a per-test
ShardQueryLogic to vary ivarator/threshold settings, so getLogic()
returns a mutable currentLogic field. executeQuery() and getSettings()
are overridden the same way (DefaultEvent results via
getTransformIterator(), fixed non-yyyyMMdd date format). The
getQueryRanges() plan-inspection helper (used by two tests to assert
on pushdown range structure, independent of query execution) is kept
as a self-contained method using the original 4-arg
ShardQueryConfiguration.create()+initialize() flow, since it doesn't
go through AbstractQueryTest's execute/assert machinery at all.

Ingest already called IndexIngestUtil with a single fixed dataset (no
range concept), so no ingest changes needed. All 8 tests pass.

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