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

Star Tree Merge and Aggregation Fixes #15274

Merged

Conversation

sarthakaggarwal97
Copy link
Contributor

@sarthakaggarwal97 sarthakaggarwal97 commented Aug 16, 2024

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

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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: Sarthak Aggarwal <sarthagg@amazon.com>
Copy link
Contributor

@bharath-techie bharath-techie left a 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.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@sarthakaggarwal97
Copy link
Contributor Author

addressed comments @bharath-techie @mgodwan, please take a look.

@sarthakaggarwal97 sarthakaggarwal97 force-pushed the startree-merge-agg-fix branch 2 times, most recently from 05ee1f5 to 8d27f50 Compare August 16, 2024 09:27
Copy link
Contributor

✅ Gradle check result for ea7a0d4: SUCCESS

Copy link
Contributor

✅ Gradle check result for bcaff73: SUCCESS

Copy link
Contributor

❌ 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?

Copy link
Contributor

❕ 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.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Copy link
Contributor

✅ Gradle check result for 90cc4ef: SUCCESS

@sachinpkale
Copy link
Member

Recently introduction of merges for star tree file formats were introduced where we were transforming the metric into its original field type while fetching star tree document type.

Not able to understand much from the PR description. Can you please re-word this?

@sachinpkale sachinpkale merged commit a27d26b into opensearch-project:main Aug 19, 2024
37 of 40 checks passed
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
---------

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@bharath-techie bharath-techie added the backport 2.x Backport to 2.x branch label Aug 26, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 26, 2024
---------

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>
linuxpi pushed a commit that referenced this pull request Aug 26, 2024
---------


(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>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
---------

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
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 bug Something isn't working Indexing:Performance skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Transforming Metric Value to Aggregated Value Type during Star Tree Merges
5 participants