Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] [Derived Fields] Add aggregation support for derived fields #15009

Merged
merged 2 commits into from
Jul 30, 2024

Commits on Jul 29, 2024

  1. [Derived Fields] Add aggregation support for derived fields (#14618)

    * Add aggregation support for derived fields
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * add unit test for a terms agg with derived fields
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * Fix license header and add changelog entry
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * move matrix_stats tests to aggs-matrix-stats module
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * Move matrix tests back and add dependency to painless module
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * add tests for all aggregations types and support ip_range
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * Add tests for agg script returned from DerivedFieldType
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * remove children aggs test as its not yet supported
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * Add more tests
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    * fix changelog
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    
    ---------
    
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    (cherry picked from commit e26608b)
    Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    1e69ade View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. 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 <marc.handalian@gmail.com>
    (cherry picked from commit 0cde7ba)
    Signed-off-by: Marc Handalian <marc.handalian@gmail.com>
    mch2 committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    23f7128 View commit details
    Browse the repository at this point in the history