Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] [Derived Fields] Add aggregation support for derived f…
…ields (#15009) * [Derived Fields] Add aggregation support for derived fields (#14618) * Add aggregation support for derived fields Signed-off-by: Marc Handalian <[email protected]> * add unit test for a terms agg with derived fields Signed-off-by: Marc Handalian <[email protected]> * Fix license header and add changelog entry Signed-off-by: Marc Handalian <[email protected]> * move matrix_stats tests to aggs-matrix-stats module Signed-off-by: Marc Handalian <[email protected]> * Move matrix tests back and add dependency to painless module Signed-off-by: Marc Handalian <[email protected]> * add tests for all aggregations types and support ip_range Signed-off-by: Marc Handalian <[email protected]> * Add tests for agg script returned from DerivedFieldType Signed-off-by: Marc Handalian <[email protected]> * remove children aggs test as its not yet supported Signed-off-by: Marc Handalian <[email protected]> * Add more tests Signed-off-by: Marc Handalian <[email protected]> * fix changelog Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit e26608b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fix derived field tests for percentile ranks. (#15015) These tests fail to backport to 2.x becuase 2.x uses a different branch of tdigest that computes percentiles differently. Rather than chase these over time, change the assertions to check for the length of results returned instead of their values. Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit 0cde7ba) Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Marc Handalian <[email protected]>
- Loading branch information