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

Refactor parsing logic for Measurement #112

Merged

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Sep 10, 2024

Description

Currently the path to parse a Measurement Object in SearchQueryRecord assumes measurement only has a Number value. Since we introduced aggregation in https://github.com/opensearch-project/query-insights/pull/66/files#diff-121513dc0c9407809aae27a6def385b2238c68e417b199cd1fe570220fc5c28cR23, Measurement now is an Object with number, count and aggregation type fields. we need to refactor the parsing logic in all related paths.

Issues Resolved

#107

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: Chenyang Ji <[email protected]>
@deshsidd
Copy link
Collaborator

LGTM

@ansjcy ansjcy merged commit b869de9 into opensearch-project:main Sep 10, 2024
16 checks passed
@ansjcy ansjcy deleted the refactor-parsing-for-measurement branch September 10, 2024 01:20
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
* Refactor parsing logic for Measurement

Signed-off-by: Chenyang Ji <[email protected]>

* fix failed tests

Signed-off-by: Chenyang Ji <[email protected]>

---------

Signed-off-by: Chenyang Ji <[email protected]>
(cherry picked from commit b869de9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ansjcy pushed a commit that referenced this pull request Sep 10, 2024
* Refactor parsing logic for Measurement



* fix failed tests



---------


(cherry picked from commit b869de9)

Signed-off-by: Chenyang Ji <[email protected]>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants