Fix stats aggregation returning zero results with size:0#20427
Fix stats aggregation returning zero results with size:0#20427sandeshkr419 merged 4 commits intoopensearch-project:mainfrom
size:0#20427Conversation
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughModified the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
size:0size:0
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
|
❌ Gradle check result for 374d98a: 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 374d98a: 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? |
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
|
❌ Gradle check result for 8b2d689: 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 8b2d689: 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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20427 +/- ##
============================================
- Coverage 73.28% 73.23% -0.05%
- Complexity 71825 71868 +43
============================================
Files 5793 5793
Lines 328844 328846 +2
Branches 47343 47343
============================================
- Hits 240978 240827 -151
- Misses 68571 68743 +172
+ Partials 19295 19276 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @bowenlan-amzn, adding @asimmahmood1 @jainankitk |
asimmahmood1
left a comment
There was a problem hiding this comment.
Good find! I'm surprised it wasn't caught in testing.
Looks like this was introduced in 3.4: #20067
I think Codecov report should've caught that is line isn't tested:
There was a problem hiding this comment.
Thanks @prudhvigodithi for fixing this. Hopefully we don't have similar issue for other aggregators
Description
While testing intra segment #20202 noticed the bug where for stats aggs
collectRangemethod usesmaximuminstead ofmaxvariable. See the SumAggregator which works correctly.Before fix
After fix
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.