-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Backport 2.x] Add fieldType to AbstractQueryBuilder and SortBuilder (#15328) #15538
[Backport 2.x] Add fieldType to AbstractQueryBuilder and SortBuilder (#15328) #15538
Conversation
…ject#15328) (cherry picked from commit 839ba0b) Signed-off-by: David Zane <davizane@amazon.com>
Signed-off-by: David Zane <38449481+dzane17@users.noreply.github.com>
This is a breaking change on the 2.x line. There are many plugins that implement custom QueryBuilders. We can't go and add a new abstract method to |
❌ Gradle check result for 584a55a: 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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding "Request changes" to block this from getting backported to 2.x, so that we don't break all the plugins.
That's a good point @msfroh. The reason for making it abstract is to ensure future implementations automatically provide fieldName. Any idea as to how many plugins we are talking about? And, what is the right channel for communicating this change? |
While did not see anything in SQL plugin, saw 1 usage in k-NN - https://github.com/opensearch-project/k-NN/blob/2b303d90d7e47169f5bb1a216c4b9d7207794fba/src/main/java/org/opensearch/knn/index/query/KNNQueryBuilder.java#L69 |
❕ Gradle check result for 6bad1a9: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #15538 +/- ##
============================================
- Coverage 71.73% 71.66% -0.07%
- Complexity 63721 63774 +53
============================================
Files 5235 5235
Lines 297971 298039 +68
Branches 43363 43371 +8
============================================
- Hits 213741 213589 -152
- Misses 66369 66646 +277
+ Partials 17861 17804 -57 ☔ View full report in Codecov by Sentry. |
I think most of these references are coming from documentation, which should auto update from the code. Excluding that we have about:
TBH, updating these plugins doesn't look too bad to me. But, I am open to suggestions on improving the original code change itself. Some of the discussion on different options is captured over here - opensearch-project/query-insights#69 |
Closing PR while we are working on different approach for solving this - opensearch-project/query-insights#69 |
(cherry picked from commit 839ba0b)
Signed-off-by: David Zane davizane@amazon.com
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.