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

Changes to support unmapped fields in metric aggregation #16481

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

expani
Copy link
Contributor

@expani expani commented Oct 25, 2024

Description

Handling empty field context for fields absent in the index.

Related Issues

Resolves #16473

Copy link
Contributor

❌ Gradle check result for 1f8dcc6: 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?

@sandeshkr419
Copy link
Contributor

@expani Thanks for debugging this. Can you please add a unit test case and move this out of draft state.

Copy link
Contributor

✅ Gradle check result for 51eb573: SUCCESS

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.22%. Comparing base (ab546ae) to head (a7202c0).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16481      +/-   ##
============================================
- Coverage     72.23%   72.22%   -0.01%     
- Complexity    65210    65287      +77     
============================================
  Files          5299     5299              
  Lines        303475   303475              
  Branches      43925    43925              
============================================
- Hits         219217   219193      -24     
- Misses        66254    66365     +111     
+ Partials      18004    17917      -87     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

❌ Gradle check result for a1256aa: 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?

Copy link
Contributor

❌ Gradle check result for 47b2996: 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?

Copy link
Contributor

❌ Gradle check result for f2d0091: 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: expani <[email protected]>
Signed-off-by: expani <[email protected]>
Copy link
Contributor

❌ Gradle check result for b3c736b: 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?

@expani expani changed the title Changes to unmapped fields in metric aggregation factory Changes to support unmapped fields in metric aggregation factory Dec 12, 2024
@expani expani changed the title Changes to support unmapped fields in metric aggregation factory Changes to support unmapped fields in metric aggregation Dec 12, 2024
@expani
Copy link
Contributor Author

expani commented Jan 2, 2025

@sandeshkr419 @bharath-techie I have added a unit test for this bug in MetricAggregatorTest and it's failing when removing the fix with the same NullPointerException

./gradlew ':server:test' --tests "org.opensearch.search.aggregations.startree.MetricAggregatorTests.*" -Druntime.java=21

Kindly review the PR.

@expani
Copy link
Contributor Author

expani commented Jan 2, 2025

Looks like merging from main is making the UTs fail again. Taking a look

Copy link
Contributor

github-actions bot commented Jan 2, 2025

❌ Gradle check result for 7a231e8: 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?

Copy link
Contributor

github-actions bot commented Jan 2, 2025

❌ Gradle check result for ea6929e: 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?

Copy link
Contributor

github-actions bot commented Jan 3, 2025

✅ Gradle check result for a0b9e48: SUCCESS

Copy link
Contributor

github-actions bot commented Jan 3, 2025

❌ Gradle check result for 330088c: 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?

Copy link
Contributor

github-actions bot commented Jan 3, 2025

✅ Gradle check result for 6432da4: SUCCESS

Copy link
Contributor

github-actions bot commented Jan 3, 2025

❌ Gradle check result for 6bf70e4: 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?

Copy link
Contributor

github-actions bot commented Jan 3, 2025

✅ Gradle check result for a7202c0: SUCCESS

@expani
Copy link
Contributor Author

expani commented Jan 3, 2025

The UTs are passing now. @bharath-techie @msfroh @sandeshkr419 Please review when you get sometime.

Copy link
Contributor

@bharath-techie bharath-techie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search:Aggregations Search Search query, autocomplete ...etc skip-changelog
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[BUG] Invalid Field Names in Metric Aggregation Queries that use star tree returns 500 Internal Server Error
3 participants