-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
* 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>
❌ Gradle check result for 1e69ade: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
This backport is failing because the version of |
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]>
cherry picked #15015 on top of this pr to fix the percentile ranks difference on 2.x |
❌ Gradle check result for 23f7128: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 23f7128: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #15009 +/- ##
============================================
+ Coverage 71.48% 71.55% +0.06%
- Complexity 62677 62751 +74
============================================
Files 5123 5123
Lines 294480 294510 +30
Branches 42912 42915 +3
============================================
+ Hits 210518 210733 +215
+ Misses 66286 66095 -191
- Partials 17676 17682 +6 ☔ View full report in Codecov by Sentry. |
Backport e26608b from #14618.