This is an automated email from the ASF dual-hosted git repository.

voonhous pushed a commit to tag rfc-105-pre-cleanup
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit b47c851a604434950ec032a908b8c322887e4091
Author: voon <[email protected]>
AuthorDate: Tue May 26 23:39:21 2026 +0800

    fix(trino): pin Jackson to 2.21.3 so Trino's airlift APIs resolve at runtime
    
    Hudi parent pom pins jackson-core / -databind / -annotations individually at
    2.15.2 (set via the Spark 3 fasterxml properties). Trino's airlift JSON
    codec calls StreamReadConstraints.Builder.maxNameLength(int), which was
    added in Jackson 2.16, so tests that exercise the page-source pipeline
    crash with NoSuchMethodError on the very first session builder
    construction.
    
    Direct entries in our plugin's dependencyManagement override the parent's
    individual pins (BOM imports do not -- parent direct entries win). Pin
    jackson-core / -databind to 2.21.3 (matches Trino airbase's
    dep.jackson.version) and jackson-annotations to 2.21 (the annotations
    artifact follows its own cadence and never publishes the .x patch).
---
 hudi-trino-plugin/pom.xml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/hudi-trino-plugin/pom.xml b/hudi-trino-plugin/pom.xml
index 708daebc0188..c26f0bb6fbc9 100644
--- a/hudi-trino-plugin/pom.xml
+++ b/hudi-trino-plugin/pom.xml
@@ -55,6 +55,25 @@
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
+            <!-- Hudi parent pins jackson-* individually at 2.15.2, which 
predates
+                 StreamReadConstraints.Builder.maxNameLength (added in 2.16). 
Trino airlift needs it.
+                 Direct entries override parent pins; jackson-bom imports do 
not (parent direct entries win). -->
+            <dependency>
+                <groupId>com.fasterxml.jackson.core</groupId>
+                <artifactId>jackson-core</artifactId>
+                <version>2.21.3</version>
+            </dependency>
+            <dependency>
+                <groupId>com.fasterxml.jackson.core</groupId>
+                <artifactId>jackson-databind</artifactId>
+                <version>2.21.3</version>
+            </dependency>
+            <!-- jackson-annotations follows its own cadence; latest in the 
2.21 line is 2.21 (no patch). -->
+            <dependency>
+                <groupId>com.fasterxml.jackson.core</groupId>
+                <artifactId>jackson-annotations</artifactId>
+                <version>2.21</version>
+            </dependency>
             <!-- Airbase manages junit-platform at 6.0.3 (paired with jupiter 
6.x). Hudi manages
                  jupiter at 5.14.1 (paired with platform 1.14.1). Pin platform 
here to keep the
                  pair consistent; without this, surefire fails with 
OutputDirectoryCreator not found. -->

Reply via email to