-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Star Tree Merge and Aggregation Fixes #15274
Star Tree Merge and Aggregation Fixes #15274
Conversation
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
...r/src/test/java/org/opensearch/index/compositeindex/datacube/startree/StarTreeTestUtils.java
Outdated
Show resolved
Hide resolved
.../java/org/opensearch/index/compositeindex/datacube/startree/aggregators/ValueAggregator.java
Show resolved
Hide resolved
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.
LGTM. Thanks for raising the changes.
.../java/org/opensearch/index/compositeindex/datacube/startree/builder/BaseStarTreeBuilder.java
Show resolved
Hide resolved
...r/src/test/java/org/opensearch/index/compositeindex/datacube/startree/StarTreeTestUtils.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/opensearch/index/compositeindex/datacube/startree/StarTreeTestUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
addressed comments @bharath-techie @mgodwan, please take a look. |
.../opensearch/index/compositeindex/datacube/startree/builder/AbstractStarTreeBuilderTests.java
Show resolved
Hide resolved
05ee1f5
to
8d27f50
Compare
❌ Gradle check result for 8d27f50: 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? |
❕ Gradle check result for 05ee1f5: 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. |
.../opensearch/index/compositeindex/datacube/startree/builder/AbstractStarTreeBuilderTests.java
Show resolved
Hide resolved
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
8d27f50
to
90cc4ef
Compare
Not able to understand much from the PR description. Can you please re-word this? |
.../opensearch/index/compositeindex/datacube/startree/builder/AbstractStarTreeBuilderTests.java
Show resolved
Hide resolved
--------- Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
--------- Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com> (cherry picked from commit a27d26b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
--------- (cherry picked from commit a27d26b) Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com> 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>
--------- Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Description
Coming here from #14809.
Whenever we were reading the star tree documents from the segment during merges, we were transforming the segment metric doc value to its original field type. Instead, it should be converted to aggregator value type since before indexing doc values, the metric type is of the aggregator value type.
For Example.
If there is a Half Float Metric Field, with the SUM metric (double type). The Half Float Metric field is converted to double during aggregation and indexed as "double". During reads, the metric should be converted from sortable long back to double only for accurate aggregations.
Related Issues
Resolves #15275
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.