mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
956ae93fdb
This changes has `InternalAggregationTestCase` performs partial reductions to better mimick `InternalAggregations#reduce`. In particular, this fixes a bug when we'd attempt a partial reduction of aggregations that were entirely unmapped but use a mapped aggregation as the "lead" of the reduction. This was possible in the test but isn't possible in production. The reduction "lead" is unmapped if all agg results being reduced are unmapped. Closes #65118