-
Notifications
You must be signed in to change notification settings - Fork 2k
[Star Tree] Support of Boolean Queries in Aggregations #17941
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
Conversation
Signed-off-by: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for 525e2d2: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 9dbe1bf: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 1adb472: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 0d22537: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 308c3c9: 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: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for ac34a73: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 5a0ecf1: 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: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for 4cb1f66: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for c937541: 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: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for b508ea6: 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: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
Signed-off-by: Rishab Nahata <[email protected]>
...src/main/java/org/opensearch/search/startree/filter/provider/BoolStarTreeFilterProvider.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/opensearch/search/startree/filter/provider/BoolStarTreeFilterProvider.java
Show resolved
Hide resolved
❕ Gradle check result for 2596863: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17941 +/- ##
============================================
- Coverage 72.61% 72.49% -0.13%
+ Complexity 67203 67190 -13
============================================
Files 5473 5475 +2
Lines 310145 310339 +194
Branches 45064 45122 +58
============================================
- Hits 225225 224976 -249
- Misses 66576 66998 +422
- Partials 18344 18365 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Rishab Nahata <[email protected]>
❕ Gradle check result for fa3382c: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
server/src/main/java/org/opensearch/search/startree/filter/DimensionFilterMergerUtils.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/startree/filter/DimensionFilterMergerUtils.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/startree/filter/provider/DimensionFilterMapper.java
Show resolved
Hide resolved
...src/main/java/org/opensearch/search/startree/filter/provider/BoolStarTreeFilterProvider.java
Show resolved
Hide resolved
Signed-off-by: Rishab Nahata <[email protected]>
❌ Gradle check result for 4cbf846: 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: Rishab Nahata <[email protected]>
❌ Gradle check result for 63b786d: 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 does this PR looks good to you now? |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-3.0 3.0
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-3.0
# Create a new branch
git switch --create backport/backport-17941-to-3.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 74a67c9851f5c214886096d5ee76c8b63fdeece8
# Push it to GitHub
git push --set-upstream origin backport/backport-17941-to-3.0
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-3.0 Then, create a pull request where the |
…oject#17941) --------- Signed-off-by: Rishab Nahata <[email protected]>
…#17941) (#18097) --------- Signed-off-by: Rishab Nahata <[email protected]>
Description
This PR adds support for boolean queries in star tree indices. The implementation handles both MUST and SHOULD clauses with specific constraints to maintain star tree's performance benefits.
Key Changes:
Constraints
MUST
clauseMUST
Constraints:MUST
Interaction:MUST
+SHOULD
Interaction:MUST
conditions take precedence over top-levelSHOULD
SHOULD
clauses:SHOULD
clauses become required conditionsSHOULD
conditions first (union)MUST
conditions if on same dimensionSHOULD
clauseSHOULD
Constraints:SHOULD
clauses must operate on same dimensionSHOULD
SHOULD
clauses across different dimensions (no cross-dimension OR)MUST
+SHOULD
Interaction:SHOULD
withMUST
is optional (affects score only unless minimum_should_match is set)SHOULD
is inside aMUST
clause:MUST
: Need to find union ofSHOULD
conditions first and then intersect with outerMUST
conditionsMUST
: Process normally as a required conditionSHOULD
Constraints:SHOULD
clauses must all operate on same dimension as parentSHOULD
SHOULD
:MUST
clauses insideSHOULD
(no multi-dimension combinations, same dimension combination is still possible)MUST_NOT
clausesSHOULD
on same dimension allowedRelated Issues
Resolves #17267
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.