-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pass parent filter to inner hit query #13770
Conversation
❌ Gradle check result for 6ee7e12: 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 8cc60d4: 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? |
@msfroh Could you take a look? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13770 +/- ##
============================================
+ Coverage 71.42% 71.55% +0.13%
- Complexity 59978 61231 +1253
============================================
Files 4985 5062 +77
Lines 282275 287912 +5637
Branches 40946 41693 +747
============================================
+ Hits 201603 206009 +4406
- Misses 63999 64894 +895
- Partials 16673 17009 +336 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/index/query/NestedQueryBuilder.java
Outdated
Show resolved
Hide resolved
❌ Gradle check result for f54232b: 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: Heemin Kim <heemin@amazon.com>
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-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-13770-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 db5240e06dc08e7d7d03432595bb4d93b0e2e32d
# Push it to GitHub
git push --set-upstream origin backport/backport-13770-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
Uh-oh -- @heemin32, it looks like we have a failing test that's probably related to this change: It seems to reliably reproduce with the following:
|
Created a flaky test issue for it at #13890. It doesn't fail all the time, but it fails frequently enough that it's really annoying. We may want to consider reverting this change until we have a fix. |
…)" This reverts commit db5240e.
Signed-off-by: Heemin Kim <heemin@amazon.com>
…)" (opensearch-project#13896) This reverts commit db5240e.
Signed-off-by: Heemin Kim <heemin@amazon.com>
…)" (opensearch-project#13896) This reverts commit db5240e.
Description
Parent filter is passed to nested query in #10246 PR. The same parent filter should be passed to inner query so that innerHit can utilize the data for correct innerHit result. Without this PR, the result in innerHit does not align with original query result.
Related Issues
opensearch-project/k-NN#1447
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.