-
Notifications
You must be signed in to change notification settings - Fork 191
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
Fixing composite aggregations with correct parameters #967
Fixing composite aggregations with correct parameters #967
Conversation
Signed-off-by: Vacha Shah <vachshah@amazon.com>
I am working on fixing/improving the test I added in this PR. |
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Add a working sample to samples, maybe start an aggregations guide if we don't have anything n that, this way you know whether the code works? Also do check what's available in https://github.com/opensearch-project/opensearch-api-specification for this, good opportunity to fix/add as we have an incoming code generator in #366. |
...pensearch/client/opensearch/_types/aggregations/CompositeDateHistogramAggregationSource.java
Outdated
Show resolved
Hide resolved
...pensearch/client/opensearch/_types/aggregations/CompositeDateHistogramAggregationSource.java
Show resolved
Hide resolved
...pensearch/client/opensearch/_types/aggregations/CompositeDateHistogramAggregationSource.java
Outdated
Show resolved
Hide resolved
...pensearch/client/opensearch/_types/aggregations/CompositeDateHistogramAggregationSource.java
Show resolved
Hide resolved
Thanks @VachaShah , I think it looks good model wise |
I will make sure to add samples and guides and will look through the specs as well! |
Thanks @reta! Its weird why the test that I added doesn't fail here, it fails for me on my local 🤔 |
Hm ... I am not sure, could look later on if you need a hand! |
Thank you @reta! Yeah I still have test failures on my local but the workflows here are green, my failure is:
This is against OpenSearch 2.11.0. I will continue debugging into this. |
@VachaShah One possible explanation would be that we're not actually running this integration test in CI/CD. Will you please try to make a change that shows which/how many tests are run? I see |
Yeah thats what is happening I think. Running
Ah I think the tests are only running from https://github.com/opensearch-project/opensearch-java/tree/main/java-client/src/test/java/org/opensearch/client and not from https://github.com/opensearch-project/opensearch-java/tree/main/java-client/src/test/java11/org/opensearch/client/opensearch/integTest |
Thanks @VachaShah , I used to always run |
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
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.
Looks good!
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-967-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 cc6c273ded052be68810bc2907bceabda6572eb1
# Push it to GitHub
git push --set-upstream origin backport/backport-967-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
will need a manual backport pls |
…ject#967) * Fixing composite aggregations with correct parameters Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding tests Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding guides, samples and fixing tests Signed-off-by: Vacha Shah <vachshah@amazon.com> * Addressing comments Signed-off-by: Vacha Shah <vachshah@amazon.com> --------- Signed-off-by: Vacha Shah <vachshah@amazon.com>
…974) * Fixing composite aggregations with correct parameters (#967) * Fixing composite aggregations with correct parameters Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding tests Signed-off-by: Vacha Shah <vachshah@amazon.com> * Adding guides, samples and fixing tests Signed-off-by: Vacha Shah <vachshah@amazon.com> * Addressing comments Signed-off-by: Vacha Shah <vachshah@amazon.com> --------- Signed-off-by: Vacha Shah <vachshah@amazon.com> * Fix: test. (#972) Signed-off-by: dblock <dblock@amazon.com> Signed-off-by: Vacha Shah <vachshah@amazon.com> --------- Signed-off-by: Vacha Shah <vachshah@amazon.com> Signed-off-by: dblock <dblock@amazon.com> Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
Description
Introduced classes for composite aggregations for terms, datehistogram, histogram and geotilegrid. I looked in the server code from https://github.com/opensearch-project/OpenSearch/tree/main/server/src/main/java/org/opensearch/search/aggregations/bucket/composite.
Issues Resolved
Fixes #957
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.