Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49932][CORE] Use
tryWithResource
release `JsonUtils#toJsonSt…
…ring` resources to avoid memory leaks ### What changes were proposed in this pull request? The pr aims to use `tryWithResource` release `JsonUtils#toJsonString` resources to avoid memory leaks. ### Why are the changes needed? Avoiding potential memory leaks. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #48420 from panbingkun/SPARK-49932. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
- Loading branch information