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 wildcard term & terms query & add YAML REST test #15607

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

HUSTERGS
Copy link
Contributor

@HUSTERGS HUSTERGS commented Sep 3, 2024

Description

Fix terms related query on wildcard field, original implementation didn't correctly parse the binary string value, causing the search result returns nothing

Related Issues

Resolves #15571

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 3, 2024

❌ Gradle check result for d347ada: 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 3, 2024

❌ Gradle check result for d7a17a5: 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 3, 2024

❌ Gradle check result for 57e007e: null

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 3, 2024

❌ Gradle check result for 4ac0372: 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
Copy link
Contributor Author

HUSTERGS commented Sep 3, 2024

Flaky test failure: #15600

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! @msfroh 👀 just to make sure I'm not missing anything like the query is not supposed to return anything ;)

@HUSTERGS add a fix line to CHANGELOG please?

@dblock dblock added the backport 2.x Backport to 2.x branch label Sep 3, 2024
Signed-off-by: gesong.samuel <[email protected]>
@HUSTERGS HUSTERGS requested a review from dblock September 3, 2024 12:20
Copy link
Contributor

github-actions bot commented Sep 3, 2024

❌ Gradle check result for efa73de: null

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 3, 2024

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

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.91%. Comparing base (41ba00a) to head (efa73de).
Report is 36 commits behind head on main.

Files with missing lines Patch % Lines
...g/opensearch/index/mapper/WildcardFieldMapper.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               main   #15607    +/-   ##
==========================================
  Coverage     71.91%   71.91%            
+ Complexity    63864    63842    -22     
==========================================
  Files          5251     5257     +6     
  Lines        298375   298543   +168     
  Branches      43146    43164    +18     
==========================================
+ Hits         214572   214699   +127     
+ Misses        66158    66148    -10     
- Partials      17645    17696    +51     

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

@dblock dblock merged commit ad1df9e into opensearch-project:main Sep 4, 2024
35 of 36 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
* fix wildcard term & terms query & add YAML REST test

Signed-off-by: gesong.samuel <[email protected]>

* add CHANGELOG

Signed-off-by: gesong.samuel <[email protected]>

---------

Signed-off-by: gesong.samuel <[email protected]>
Co-authored-by: gesong.samuel <[email protected]>
(cherry picked from commit ad1df9e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
msfroh pushed a commit that referenced this pull request Sep 4, 2024
* fix wildcard term & terms query & add YAML REST test



* add CHANGELOG



---------



(cherry picked from commit ad1df9e)

Signed-off-by: gesong.samuel <[email protected]>
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 <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 4, 2024
* fix wildcard term & terms query & add YAML REST test

* add CHANGELOG

---------

(cherry picked from commit ad1df9e)

Signed-off-by: gesong.samuel <[email protected]>
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 <[email protected]>
(cherry picked from commit a737f83)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
…ect#15607)

* fix wildcard term & terms query & add YAML REST test

Signed-off-by: gesong.samuel <[email protected]>

* add CHANGELOG

Signed-off-by: gesong.samuel <[email protected]>

---------

Signed-off-by: gesong.samuel <[email protected]>
Co-authored-by: gesong.samuel <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
…ect#15607)

* fix wildcard term & terms query & add YAML REST test

Signed-off-by: gesong.samuel <[email protected]>

* add CHANGELOG

Signed-off-by: gesong.samuel <[email protected]>

---------

Signed-off-by: gesong.samuel <[email protected]>
Co-authored-by: gesong.samuel <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
…ect#15607)

* fix wildcard term & terms query & add YAML REST test

Signed-off-by: gesong.samuel <[email protected]>

* add CHANGELOG

Signed-off-by: gesong.samuel <[email protected]>

---------

Signed-off-by: gesong.samuel <[email protected]>
Co-authored-by: gesong.samuel <[email protected]>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
…ect#15607)

* fix wildcard term & terms query & add YAML REST test

Signed-off-by: gesong.samuel <[email protected]>

* add CHANGELOG

Signed-off-by: gesong.samuel <[email protected]>

---------

Signed-off-by: gesong.samuel <[email protected]>
Co-authored-by: gesong.samuel <[email protected]>
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] terms query on wildcard field returns wrong result
2 participants