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

Fix the deserialization of SortOptions #981

Merged
merged 3 commits into from
May 13, 2024

Conversation

bowenlan-amzn
Copy link
Member

@bowenlan-amzn bowenlan-amzn commented May 10, 2024

Description

Not familiar with this repo. Just helping to fix the deserialization logic of SortOptions.

Reason for the failure

array deserializer invoke the deserialize method with event

result.add(itemDeserializer.deserialize(parser, mapper, event));

which end up throw exception for SortOptions deserializer

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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: bowenlan-amzn <[email protected]>
Signed-off-by: bowenlan-amzn <[email protected]>
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, any other occurrences of the same problem?

@dblock dblock merged commit e672fdc into opensearch-project:main May 13, 2024
64 checks passed
@dblock dblock added the backport 2.x Backport to 2.x branch label May 13, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 13, 2024
* Fix the deserialization of SortOptions

Signed-off-by: bowenlan-amzn <[email protected]>

* add changelog

Signed-off-by: bowenlan-amzn <[email protected]>

* spotless

Signed-off-by: bowenlan-amzn <[email protected]>

---------

Signed-off-by: bowenlan-amzn <[email protected]>
(cherry picked from commit e672fdc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@bowenlan-amzn
Copy link
Member Author

I scaned through the repo when working on this, don't see other places obviously having this problem.

reta pushed a commit that referenced this pull request May 13, 2024
* Fix the deserialization of SortOptions



* add changelog



* spotless



---------


(cherry picked from commit e672fdc)

Signed-off-by: bowenlan-amzn <[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>
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants