Make AggregatorTestCase#searchAndReduce(...) more inline with what happens in Search API #98672
Labels
:Analytics/Aggregations
Aggregations
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
>test
Issues or PRs that are addressing/adding tests
Currently
AggregatorTestCase
has its own search logic that unit tests all the aggregations. However this isn't in line with logic in the Search API. Especially with after this recent change: #98204.Ideally search logic uses in unit tests should be similar with how aggregations get executed in production. However this currently not the case and this causes the unit test coverage to miss certain bugs/issues.
We should investigate whether we can bring the
AggregatorTestCase#searchAndReduce(...)
more in line with what happens in the Search API. Maybe QueryPhase/AggregatioPhase should be changed to allow unit tests or maybe something else.The text was updated successfully, but these errors were encountered: