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

Add support for wrapper queries #630

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

andrewparmet
Copy link
Contributor

Description

Adds support the wrapper query type. A rehash of #342, which appears to be abandoned.

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.

Signed-off-by: Andrew Parmet <[email protected]>
*/

/*
* Licensed to Elasticsearch B.V. under one or more contributor
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Elasticsearch header could be dropped, this is a new file, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose - I copied it from the other PR which has this header, so it's actually less clear that I can just drop it depending on where the other PR sourced the file.

@reta
Copy link
Collaborator

reta commented Sep 21, 2023

@andrewparmet thank you for picking it up, would be great to have tests added for this change (and CHANGELOG entry)

@andrewparmet
Copy link
Contributor Author

@reta Happy to - can you point me to the example test that most closely mirrors what you're looking for? Looks like most query variants don't have tests.

@reta
Copy link
Collaborator

reta commented Sep 21, 2023

@reta Happy to - can you point me to the example test that most closely mirrors what you're looking for? Looks like most query variants don't have tests.

Please check BehaviorsTest, there are at least some tests for ShapeQuery and TermQuery

@reta
Copy link
Collaborator

reta commented Sep 21, 2023

@andrewparmet could you please fix DCO ? (may need --amend)

Signed-off-by: Andrew Parmet <[email protected]>
Signed-off-by: Andrew Parmet <[email protected]>
@andrewparmet
Copy link
Contributor Author

could you please fix DCO ?

@reta Should be good to go!

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

Thank you @andrewparmet!

@VachaShah VachaShah merged commit 626e99c into opensearch-project:main Sep 22, 2023
29 checks passed
@VachaShah VachaShah added the backport 2.x Backport to 2.x branch label Sep 22, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 22, 2023
* add wrapperquery

Signed-off-by: Andrew Parmet <[email protected]>

* add changelog entry

Signed-off-by: Andrew Parmet <[email protected]>

* add test

Signed-off-by: Andrew Parmet <[email protected]>

---------

Signed-off-by: Andrew Parmet <[email protected]>
(cherry picked from commit 626e99c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
VachaShah pushed a commit that referenced this pull request Sep 22, 2023
* add wrapperquery



* add changelog entry



* add test



---------


(cherry picked from commit 626e99c)

Signed-off-by: Andrew Parmet <[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>
@andrewparmet andrewparmet deleted the add-wrapper-query branch September 22, 2023 21:07
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants