You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by mc...@apache.org on 2026/06/02 12:37:06 UTC

(gravitino) branch main updated: [#11337] deps(paimon): Exclude transitive tomcat-embed-core from hive-exec (#11338)

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

mchades pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new b5ea86aa57 [#11337] deps(paimon): Exclude transitive tomcat-embed-core from hive-exec (#11338)
b5ea86aa57 is described below

commit b5ea86aa573bfb9e39c76da35219d2db791ca863
Author: geyanggang <ge...@qq.com>
AuthorDate: Tue Jun 2 20:37:01 2026 +0800

    [#11337] deps(paimon): Exclude transitive tomcat-embed-core from hive-exec (#11338)
    
    ### What changes were proposed in this pull request?
    
    Added `exclude("org.apache.tomcat.embed")` to the
    `runtimeOnly(libs.hive2.exec)` block in `build.gradle.kts`.
    
    ### Why are the changes needed?
    
    `tomcat-embed-core:8.5.46` is transitively pulled in via `hive-exec` →
    `hive-shims-common` → `libthrift:0.14.1`. The Paimon catalog does not
    use Thrift's HTTP transport at runtime. A prior exclude on the paimon
    bundle only blocked one dependency path; this change closes the
    remaining path through `hive-exec`.
    
    Fix: #11337
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    - Verified with `./gradlew
    :catalogs:catalog-lakehouse-paimon:dependencyInsight --dependency
    tomcat-embed-core --configuration runtimeClasspath` — reports "No
    dependencies matching given input".
    - `./gradlew :catalogs:catalog-lakehouse-paimon:build -x test` passes.
---
 catalogs/catalog-lakehouse-paimon/build.gradle.kts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/catalogs/catalog-lakehouse-paimon/build.gradle.kts b/catalogs/catalog-lakehouse-paimon/build.gradle.kts
index b7c1881f23..1d2df30a3a 100644
--- a/catalogs/catalog-lakehouse-paimon/build.gradle.kts
+++ b/catalogs/catalog-lakehouse-paimon/build.gradle.kts
@@ -150,6 +150,7 @@ dependencies {
     exclude("org.apache.hive", "hive-vector-code-gen")
     exclude("org.apache.ivy")
     exclude("org.apache.logging.log4j")
+    exclude("org.apache.tomcat.embed")
     exclude("org.apache.zookeeper")
     exclude("org.codehaus.groovy")
     exclude("org.datanucleus")