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] Allow composite aggregation under filter or reverse_nested parent #12151

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 24b0cc9 from #11499.

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Compatibility status:

Checks if related components are compatible with change b7debe5

Incompatible components

Skipped components

Compatible components

Compatible components: [https:/opensearch-project/custom-codecs.git, https:/opensearch-project/neural-search.git, https:/opensearch-project/flow-framework.git, https:/opensearch-project/job-scheduler.git, https:/opensearch-project/observability.git, https:/opensearch-project/geospatial.git, https:/opensearch-project/cross-cluster-replication.git, https:/opensearch-project/security-analytics.git, https:/opensearch-project/k-nn.git, https:/opensearch-project/notifications.git, https:/opensearch-project/asynchronous-search.git, https:/opensearch-project/reporting.git, https:/opensearch-project/sql.git, https:/opensearch-project/ml-commons.git, https:/opensearch-project/index-management.git, https:/opensearch-project/common-utils.git, https:/opensearch-project/performance-analyzer-rca.git, https:/opensearch-project/security.git, https:/opensearch-project/anomaly-detection.git, https:/opensearch-project/alerting.git, https:/opensearch-project/performance-analyzer.git]

Copy link
Contributor

github-actions bot commented Feb 2, 2024

❌ Gradle check result for babb238: 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 Feb 6, 2024

❕ Gradle check result for babb238: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing
      1 org.opensearch.index.shard.RemoteStoreRefreshListenerTests.testTrackerData
      1 org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search.aggregation/20_terms/string profiler via global ordinals}

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (74bd8f8) 71.21% compared to head (b7debe5) 71.19%.
Report is 22 commits behind head on 2.x.

Files Patch % Lines
.../bucket/composite/CompositeAggregationBuilder.java 75.00% 0 Missing and 1 partial ⚠️
...gations/bucket/filter/FilterAggregatorFactory.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #12151      +/-   ##
============================================
- Coverage     71.21%   71.19%   -0.03%     
+ Complexity    60004    59974      -30     
============================================
  Files          4944     4944              
  Lines        282197   282197              
  Branches      41335    41335              
============================================
- Hits         200969   200912      -57     
- Misses        64241    64284      +43     
- Partials      16987    17001      +14     

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

…1499)

* Allow composite aggregation under filter parent

Composite aggregations are able to run under a filter aggregation
with no change required (other than not throwing an exception).

Also cleaned up FilterAggregatorFactory a little.

Signed-off-by: Michael Froh <[email protected]>

* Add changelog entry

Signed-off-by: Michael Froh <[email protected]>

* Add support for reverse nested agg too

Signed-off-by: Michael Froh <[email protected]>

* Add unit test coverage

Signed-off-by: Michael Froh <[email protected]>

* Skip new tests in pre-3.0 mixed cluster

Signed-off-by: Michael Froh <[email protected]>

---------

Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit 24b0cc9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@andrross andrross force-pushed the backport/backport-11499-to-2.x branch from babb238 to b7debe5 Compare February 14, 2024 00:49
Copy link
Contributor

❌ Gradle check result for b7debe5: 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 b7debe5: UNSTABLE

  • TEST FAILURES:
      2 org.opensearch.remotestore.RemoteIndexPrimaryRelocationIT.testPrimaryRelocationWhileIndexing

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants