Skip to content

Fix exists queries on nested flat_object fields throws exception#16803

Merged
msfroh merged 1 commit intoopensearch-project:mainfrom
kkewwei:fix_bug_flat_object
Jan 23, 2025
Merged

Fix exists queries on nested flat_object fields throws exception#16803
msfroh merged 1 commit intoopensearch-project:mainfrom
kkewwei:fix_bug_flat_object

Conversation

@kkewwei
Copy link
Copy Markdown
Contributor

@kkewwei kkewwei commented Dec 8, 2024

Description

[Describe what this change achieves]

Related Issues

Resolves #16795

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2024

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

@kkewwei kkewwei force-pushed the fix_bug_flat_object branch from 5763a44 to 7d38155 Compare December 8, 2024 20:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2024

✅ Gradle check result for 7d38155: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 8, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.29%. Comparing base (2794655) to head (b7d7cf9).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...opensearch/index/mapper/FlatObjectFieldMapper.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16803      +/-   ##
============================================
+ Coverage     72.19%   72.29%   +0.09%     
- Complexity    65304    65323      +19     
============================================
  Files          5301     5301              
  Lines        303774   303776       +2     
  Branches      44034    44035       +1     
============================================
+ Hits         219323   219626     +303     
+ Misses        66458    66078     -380     
- Partials      17993    18072      +79     

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

@github-actions
Copy link
Copy Markdown
Contributor

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

@kkewwei kkewwei force-pushed the fix_bug_flat_object branch 2 times, most recently from bf8251c to 3ec0dfe Compare January 22, 2025 13:02
@github-actions
Copy link
Copy Markdown
Contributor

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

@kkewwei kkewwei force-pushed the fix_bug_flat_object branch from 3ec0dfe to 56e6036 Compare January 22, 2025 14:51
@github-actions
Copy link
Copy Markdown
Contributor

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

@kkewwei kkewwei force-pushed the fix_bug_flat_object branch from 56e6036 to 0ea853d Compare January 22, 2025 18:08
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 0ea853d: 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: kkewwei <kewei.11@bytedance.com>
Signed-off-by: kkewwei <kkewwei@163.com>
@kkewwei kkewwei force-pushed the fix_bug_flat_object branch from 0ea853d to b7d7cf9 Compare January 23, 2025 02:59
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for b7d7cf9: SUCCESS

@kkewwei
Copy link
Copy Markdown
Contributor Author

kkewwei commented Jan 23, 2025

@msfroh, Could you please help review the pull request at your convenience.

@msfroh msfroh added the backport 2.x Backport to 2.x branch label Jan 23, 2025
Copy link
Copy Markdown
Contributor

@msfroh msfroh left a comment

Choose a reason for hiding this comment

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

Wow... thanks for catching that! It's a nice small fix.

@msfroh msfroh merged commit c6dfc65 into opensearch-project:main Jan 23, 2025
@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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-16803-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c6dfc65ea0bccc9cfe66bc4248d09b42d7430d0e
# Push it to GitHub
git push --set-upstream origin backport/backport-16803-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 base branch is 2.x and the compare/head branch is backport/backport-16803-to-2.x.

@msfroh
Copy link
Copy Markdown
Contributor

msfroh commented Jan 23, 2025

Hmm... sorry @kkewwei -- the automatic backport failed. It's most likely a conflict on the changelog again ☹️

@kkewwei
Copy link
Copy Markdown
Contributor Author

kkewwei commented Jan 24, 2025

Hmm... sorry @kkewwei -- the automatic backport failed. It's most likely a conflict on the changelog again ☹️

Some of the previous commits are not backported, I will complete them and then backport this one.

expani pushed a commit to expani/OpenSearch that referenced this pull request Jan 27, 2025
…search-project#16803)

Signed-off-by: kkewwei <kewei.11@bytedance.com>
Signed-off-by: kkewwei <kkewwei@163.com>
Signed-off-by: expani <anijainc@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.x Backport to 2.x branch backport-failed bug Something isn't working Search Search query, autocomplete ...etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] exists queries on nested flat_object fields throw a string_index_out_of_bounds_exception

2 participants