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

jshao 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 4a9b260630 [#10576] improvement(catalog-lakehouse-paimon): Exclude 
unused transitive Avro from hadoop-common (#10577)
4a9b260630 is described below

commit 4a9b260630a55f8a03adac94eca7b8394407e0eb
Author: geyanggang <[email protected]>
AuthorDate: Mon Mar 30 17:31:36 2026 +0800

    [#10576] improvement(catalog-lakehouse-paimon): Exclude unused transitive 
Avro from hadoop-common (#10577)
    
    ### What changes were proposed in this pull request?
    
    Added `exclude("org.apache.avro")` to the hadoop2.common dependency in
    `build.gradle.kts`. The hive2.metastore dependency already excludes
    Avro; this change applies the same exclusion to hadoop-common for
    consistency.
    
    ### Why are the changes needed?
    
    `hadoop-common:2.10.2` transitively brings in avro-1.7.7, which is
    outdated and unused by the Paimon catalog. Removing it reduces the
    dependency footprint and avoids potential conflicts with newer Avro
    versions used elsewhere.
    
    Fix: #10576
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Verified via `./gradlew
    :catalogs:catalog-lakehouse-paimon:dependencyInsight --dependency
    org.apache.avro:avro --configuration runtimeClasspath`, confirms Avro is
    no longer resolved in the runtime classpath.
---
 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 c7698db59e..83903956b2 100644
--- a/catalogs/catalog-lakehouse-paimon/build.gradle.kts
+++ b/catalogs/catalog-lakehouse-paimon/build.gradle.kts
@@ -107,6 +107,7 @@ dependencies {
     exclude("com.github.spotbugs")
     exclude("com.sun.jersey")
     exclude("javax.servlet")
+    exclude("org.apache.avro")
     exclude("org.apache.curator")
     exclude("org.apache.zookeeper")
     exclude("org.mortbay.jetty")

Reply via email to