[SPARK-59392] Upgrade Jackson to 2.22.2 - #819
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
peter-toth
approved these changes
Sep 10, 2026
Member
Author
|
Thank you, @peter-toth ! |
Member
Author
|
Merged to main |
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
Jacksonto 2.22.2 by pinning it explicitly ingradle/libs.versions.tomland forcing everycom.fasterxml.jackson*artifact to that version in the rootbuild.gradle, in the same way asNettyandHadoop. The same rule is applied to the rootbuildscriptclasspath so that the Gradle plugins (crd-generator-api-v2,cyclonedx) use the same Jackson version as the modules.jackson-annotationsis pinned separately to 2.22 because it uses a version scheme without a patch digit since Jackson 2.20 (2.22 is the version paired with 2.22.2 byjackson-bom).gradle/verification-metadata.xmlwas regenerated from scratch.Why are the changes needed?
Previously,
Jacksonwas a purely transitive dependency and resolved to 2.21.4 in the modules (via Apache Spark 4.2.0) and 2.22.1 in the plugin classpath. This PR pins it explicitly to a single version and brings the latest bug fixes and security fixes.This is also consistent with Apache Spark 5, which already moved to the Jackson 2.22.x line.
Releases:
@JsonIgnoreProperties@JsonViewfor external-type-id (EXTERNAL_PROPERTY) propertiesInetAddress@JsonViewby-passed for@JsonUnwrappedField/Setter propertiesmaxDocumentLengthbypass in async parser single-feedInput()casemaxNameLengthincrementally inReaderBasedJsonParserStreamReadConstraintsnumber length constraint tojavax.xml.datatype.GregorianCalendarandDurationjava.nio.file.Pathdeserializationjava.lang.Comparableas an "unsafe" polymorphic base typeYAMLAnchorReplayingParserYAMLAnchorReplayingParserproduces invalid sequence of events when using the merge operator inside an anchor (#624)StreamReadConstraints.maxNestingDepthinFromXmlParser(#891)InstantDeserializer(#387)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 Fable 5.1