Skip to content

Conversation

jiangzho
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds @JsonIgnore to helper methods in API to avoid unintentional serialization.

Why are the changes needed?

Some non-field heler methods in our API POJO classes can be unintentionally serialized as Jackson treat them as getters.

Does this PR introduce any user-facing change?

No

How was this patch tested?

CIs

Was this patch authored or co-authored using generative AI tooling?

No

### What changes were proposed in this pull request?

This PR adds @JsonIgnore to helper methods in API to avoid unintentional serialization.

### Why are the changes needed?

Some non-field heler methods in our API POJO classes can be unintentionally serialized as Jackson treat them as getters.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

CIs

### Was this patch authored or co-authored using generative AI tooling?

No
@github-actions github-actions bot added the API label Aug 28, 2025
@peter-toth peter-toth changed the title [SPARK-53430]Prevent unintended JSON serialization with @JsonIgnore [SPARK-53430] Prevent unintended JSON serialization with @JsonIgnore Sep 2, 2025
@peter-toth peter-toth closed this in b9a0c84 Sep 2, 2025
@peter-toth
Copy link

Thanks @jiangzho for the fix.

Merged to main (0.5.0).

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

Successfully merging this pull request may close these issues.

2 participants