Repository navigation
[SPARK-60799][BUILD] Upgrade Jackson to 2.22.4 - #60004
Closed
dongjoon-hyun wants to merge 1 commit into
Closed
dongjoon-hyun wants to merge 1 commit into
dongjoon-hyun wants to merge 1 commit into
Conversation
Member
Author
|
Could you review this PR when you have some time, @sarutak ? |
sarutak
approved these changes
Nov 2, 2026
sarutak
left a comment
Member
There was a problem hiding this comment.
LGTM. I verified the following:
- The version is updated consistently in
pom.xml,SparkBuild.scalaand the deps manifest, andjackson-annotationscorrectly stays at2.22as managed byjackson-bom2.22.4. - The listed fixes and CVE ids match the upstream release notes.
- I ran a small parser test against the 2.22.3 and 2.22.4 jars for the two streaming fixes that touch Spark's JSON read paths. With jackson-core #1683,
ReaderBasedJsonParser(used e.g. byfrom_json) now rejects an escaped lone surrogate in a field name such as{"\uD835":1}, asUTF8StreamJsonParser(used for text files) already did. With jackson-core #1750,UTF8StreamJsonParsernow accepts a raw control character in a single-quoted value whenallowUnquotedControlCharsis enabled, asReaderBasedJsonParseralready did. Both only affect malformed or edge-case input and make the two parsers agree, so this looks fine to me.
Member
Author
|
Thank you so much, @sarutak ! |
Member
Author
|
Merge Summary:
Posted by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR aims to upgrade FasterXML Jackson to 2.22.4.
Why are the changes needed?
Jackson 2.22.4 is the latest patch release on the 2.22 line.
ReaderBasedJsonParseraccepts lone surrogates in\uXXXXescapes in field namesUTF8DataInputJsonParserfails on JSON-escaped surrogate pairs in property namesALLOW_UNESCAPED_CONTROL_CHARSis ignored for single-quoted string values in UTF-8 byte parsersFilteringGeneratorDelegatehandles embedded objects, typed arrays, and raw/binary values consistently@JsonValueaccessor as aDatabindExceptionBeanDescription.findProperties()is not thread-safe on a shared, cached instanceVALUE_STRINGwith null textCBORParser.TagListbacking array geometricallyjackson-annotationsstays at 2.22 as referenced byjackson-bom2.22.4.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the CIs.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 5.5