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

fix escaped wildcard query on wildcard field #15737

Merged

Conversation

HUSTERGS
Copy link
Contributor

@HUSTERGS HUSTERGS commented Sep 5, 2024

Description

fix escaped wildcard query on wildcard field

Related Issues

Resolves #15555

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.

Copy link
Contributor

github-actions bot commented Sep 5, 2024

❌ Gradle check result for b5c8df2: 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 Sep 5, 2024

❌ Gradle check result for 747de82: 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 Sep 5, 2024

❌ Gradle check result for 76bb83b: 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 Sep 5, 2024

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

@HUSTERGS HUSTERGS force-pushed the fix_escaped_wildcard_field_query branch from 63a87c0 to fbcd5de Compare September 5, 2024 16:34
Copy link
Contributor

github-actions bot commented Sep 5, 2024

✅ Gradle check result for fbcd5de: SUCCESS

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 70.96774% with 9 lines in your changes missing coverage. Please review.

Project coverage is 71.77%. Comparing base (7cb2bd0) to head (11d0e91).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...g/opensearch/index/mapper/WildcardFieldMapper.java 70.96% 2 Missing and 7 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15737      +/-   ##
============================================
- Coverage     71.85%   71.77%   -0.08%     
+ Complexity    64213    64142      -71     
============================================
  Files          5272     5272              
  Lines        300538   300557      +19     
  Branches      43432    43440       +8     
============================================
- Hits         215947   215736     -211     
- Misses        66833    67090     +257     
+ Partials      17758    17731      -27     

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

gesong.samuel added 3 commits September 9, 2024 15:35
Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
@HUSTERGS HUSTERGS force-pushed the fix_escaped_wildcard_field_query branch from 63d67ab to 1d9765c Compare September 9, 2024 07:37
Copy link
Contributor

github-actions bot commented Sep 9, 2024

❌ Gradle check result for 63d67ab: 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 Sep 9, 2024

❕ Gradle check result for 1d9765c: 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.

@msfroh
Copy link
Collaborator

msfroh commented Sep 9, 2024

This change looks great, @HUSTERGS -- Thanks a lot for fixing this!

Signed-off-by: Michael Froh <froh@amazon.com>
@msfroh msfroh added the backport 2.x Backport to 2.x branch label Sep 9, 2024
Copy link
Contributor

github-actions bot commented Sep 9, 2024

✅ Gradle check result for 11d0e91: SUCCESS

@HUSTERGS
Copy link
Contributor Author

It seems this PR is hanging forever with Minimum approval count Expected — Waiting for status to be reported, is there anything I can do? @msfroh

@msfroh
Copy link
Collaborator

msfroh commented Sep 10, 2024

It seems this PR is hanging forever with Minimum approval count Expected — Waiting for status to be reported, is there anything I can do? @msfroh

Sorry -- that's on me. I resolved conflicts on the changelog, but I need to approve it again (since my changelog update is "not approved").

@msfroh msfroh merged commit 320611a into opensearch-project:main Sep 10, 2024
35 of 38 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
* fix escaped wildcard query on wildcard field

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* fix format error

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* add change log

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

---------

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: gesong.samuel <gesong.samuel@bytedance.com>
Co-authored-by: Michael Froh <froh@amazon.com>
(cherry picked from commit 320611a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
msfroh added a commit that referenced this pull request Sep 10, 2024
* fix escaped wildcard query on wildcard field
* fix format error
* add change log

---------

(cherry picked from commit 320611a)

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: gesong.samuel <gesong.samuel@bytedance.com>
Co-authored-by: Michael Froh <froh@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
* fix escaped wildcard query on wildcard field

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* fix format error

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* add change log

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

---------

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: gesong.samuel <gesong.samuel@bytedance.com>
Co-authored-by: Michael Froh <froh@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
* fix escaped wildcard query on wildcard field

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* fix format error

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* add change log

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

---------

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: gesong.samuel <gesong.samuel@bytedance.com>
Co-authored-by: Michael Froh <froh@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
* fix escaped wildcard query on wildcard field

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* fix format error

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

* add change log

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>

---------

Signed-off-by: gesong.samuel <gesong.samuel@bytedance.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: gesong.samuel <gesong.samuel@bytedance.com>
Co-authored-by: Michael Froh <froh@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 bug Something isn't working Search Search query, autocomplete ...etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Escaped wildcard character in wildcard query not handled correctly
2 participants