-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
For sort request on timeseries field use non concurrent search path #9562
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Sorabh Hamirwasia <[email protected]>
@sohami @jed326 @gashutos this is not in scope of this change, but I was thinking if we better off introducing the concept of search capabilities instead of adding flags to the search context, something like that (very roughly):
What do you think folks? |
+1 to this @reta We should able to chose multiple capabilities on a query too |
@reta I see your point. But for cases like timeseries asc/desc, we are evaluating based on other states (like sort/indexshard) and not storing that evaluated result as another flag. I would prefer to not store that evaluated result separately as well to avoid creating new states. Having said that, the request level evaluation for concurrent search can also be implemented without keeping separate state but I think we did that to avoid the agg factory tree traversal in each call. |
Gradle Check (Jenkins) Run Completed with:
|
We could probably change the agg factory tree concurrent search evaluation to happen at the time of tree construction too if we want to remove this state. |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #9562 +/- ##
============================================
- Coverage 71.15% 71.07% -0.08%
+ Complexity 57536 57499 -37
============================================
Files 4781 4781
Lines 271197 271216 +19
Branches 39595 39596 +1
============================================
- Hits 192975 192779 -196
- Misses 62011 62275 +264
+ Partials 16211 16162 -49
|
Thanks @sohami , I am intentionally not digging into how it is evaluated, just looking on the issue from usability perspective:
would collapse into |
But that will still require to store the evaluated result in some other place which is similar to what we have today. |
Got it. So instead of separate methods to figure out what optimizations to use. Have a single |
I think you are still thinking about the implementation (it is important but not in scope): the method checks single capability, says "yes" / "no". From implementation perspective, if it goes wild - we won't be doing it for sure. |
For gradle check seeing an unrelated test failure: |
Gradle Check (Jenkins) Run Completed with:
|
For compatibility check it is failing with CCR plugin with below error. Checked couple other PRs and there are also seeing same issue.
|
Gradle Check (Jenkins) Run Completed with:
|
The backport to
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-9562-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e5c4f9d2016bfa50c464945dc9533aa4aee49922
# Push it to GitHub
git push --set-upstream origin backport/backport-9562-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 |
…pensearch-project#9562) * For sort request on timeseries field use non concurrent search path Signed-off-by: Sorabh Hamirwasia <[email protected]> * Address review feedback Signed-off-by: Sorabh Hamirwasia <[email protected]> --------- Signed-off-by: Sorabh Hamirwasia <[email protected]>
…9562) (#9599) * For sort request on timeseries field use non concurrent search path * Address review feedback --------- Signed-off-by: Sorabh Hamirwasia <[email protected]>
…pensearch-project#9562) * For sort request on timeseries field use non concurrent search path Signed-off-by: Sorabh Hamirwasia <[email protected]> * Address review feedback Signed-off-by: Sorabh Hamirwasia <[email protected]> --------- Signed-off-by: Sorabh Hamirwasia <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
…pensearch-project#9562) * For sort request on timeseries field use non concurrent search path Signed-off-by: Sorabh Hamirwasia <[email protected]> * Address review feedback Signed-off-by: Sorabh Hamirwasia <[email protected]> --------- Signed-off-by: Sorabh Hamirwasia <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
…pensearch-project#9562) * For sort request on timeseries field use non concurrent search path Signed-off-by: Sorabh Hamirwasia <[email protected]> * Address review feedback Signed-off-by: Sorabh Hamirwasia <[email protected]> --------- Signed-off-by: Sorabh Hamirwasia <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Related Issues
#9538
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.