This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 32a15cf8334d [SPARK-57797][BUILD] Exclude `stax:stax-api` from
`hive-exec` dependency
32a15cf8334d is described below
commit 32a15cf8334dd2b03c2de5b9853f1f3db58b88bb
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Jun 30 23:21:51 2026 -0700
[SPARK-57797][BUILD] Exclude `stax:stax-api` from `hive-exec` dependency
### What changes were proposed in this pull request?
This PR excludes the `stax:stax-api` transitive dependency (pulled in by
`org.apache.hive:hive-exec`) from the binary distribution, and updates
`dev/deps` and `LICENSE-binary` accordingly for Apache Spark 5.0.0
### Why are the changes needed?
`stax:stax-api` provides the `javax.xml.stream` API, which the JDK has
bundled since Java 6 (in the `java.xml` module since Java 9). On Java 17+, the
jar is never loaded and is pure dead weight.
### 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 Opus 4.8
Closes #56918 from dongjoon-hyun/SPARK-57797.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
LICENSE-binary | 1 -
dev/deps/spark-deps-hadoop-3-hive-2.3 | 1 -
pom.xml | 5 +++++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/LICENSE-binary b/LICENSE-binary
index a578bc76478c..f3d82501b3f7 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -409,7 +409,6 @@ org.snakeyaml:snakeyaml-engine
org.xerial.snappy:snappy-java
org.yaml:snakeyaml
oro:oro
-stax:stax-api
core/src/main/java/org/apache/spark/util/collection/TimSort.java
core/src/main/resources/org/apache/spark/ui/static/bootstrap*
diff --git a/dev/deps/spark-deps-hadoop-3-hive-2.3
b/dev/deps/spark-deps-hadoop-3-hive-2.3
index 8ade14363c4a..45a096026fa0 100644
--- a/dev/deps/spark-deps-hadoop-3-hive-2.3
+++ b/dev/deps/spark-deps-hadoop-3-hive-2.3
@@ -266,7 +266,6 @@ spire-macros_2.13/0.18.0//spire-macros_2.13-0.18.0.jar
spire-platform_2.13/0.18.0//spire-platform_2.13-0.18.0.jar
spire-util_2.13/0.18.0//spire-util_2.13-0.18.0.jar
spire_2.13/0.18.0//spire_2.13-0.18.0.jar
-stax-api/1.0.1//stax-api-1.0.1.jar
stream/2.9.8//stream-2.9.8.jar
super-csv/2.2.0//super-csv-2.2.0.jar
threeten-extra/1.8.0//threeten-extra-1.8.0.jar
diff --git a/pom.xml b/pom.xml
index fa6bc317bdc6..77e8d72fdbfa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2000,6 +2000,11 @@
<groupId>net.hydromatic</groupId>
<artifactId>aggdesigner-algorithm</artifactId>
</exclusion>
+ <!-- javax.xml.stream is provided by the JDK (java.xml module) -->
+ <exclusion>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]