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

Add support for disabling typed keys serialization #1296

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Nov 15, 2024

Description

Add support for disabling typed keys serialization

Issues Resolved

Fixes #741

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: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
protected JsonpMapperBase addAttribute(String name, Object value) {
if (attributes == null) {
this.attributes = Collections.singletonMap(name, value);
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to skip attributes recreation if the one in question is set already?

} else if (!this.attributes.containsKey(name) || !Objects.equals(this.attributes.get(name), value) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typed keys in aggregation results cannot be switched off
2 participants