This is an automated email from the ASF dual-hosted git repository.
JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new efa3294bce [spark] Fix Scala 2.13 dependency resolution for Spark 4
modules (#8683)
efa3294bce is described below
commit efa3294bcee9afa522eae24dc483e4becfef1549
Author: Eunbin Son <[email protected]>
AuthorDate: Thu Jul 16 14:25:17 2026 +0900
[spark] Fix Scala 2.13 dependency resolution for Spark 4 modules (#8683)
---
paimon-spark/paimon-spark-4.0/pom.xml | 4 ++++
paimon-spark/paimon-spark-4.1/pom.xml | 4 ++++
paimon-spark/paimon-spark4-common/pom.xml | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/paimon-spark/paimon-spark-4.0/pom.xml
b/paimon-spark/paimon-spark-4.0/pom.xml
index fd380ac913..9090ed6216 100644
--- a/paimon-spark/paimon-spark-4.0/pom.xml
+++ b/paimon-spark/paimon-spark-4.0/pom.xml
@@ -38,6 +38,10 @@ under the License.
2.x; otherwise `log4j-slf4j2-impl` + `slf4j-api:1.7.32` mix
produces
`NoClassDefFoundError: org/slf4j/spi/LoggingEventBuilder` at test
startup. -->
<slf4j.version>2.0.16</slf4j.version>
+ <!-- Spark 4 only supports Scala 2.13. Pin it locally so this _2.13
module resolves its
+ dependencies to _2.13 even when the spark4 profile is inactive
(see issue #6682);
+ otherwise it inherits scala.binary.version=2.12 from
paimon-parent. -->
+ <scala.binary.version>2.13</scala.binary.version>
</properties>
<dependencies>
diff --git a/paimon-spark/paimon-spark-4.1/pom.xml
b/paimon-spark/paimon-spark-4.1/pom.xml
index ba6ca74697..f4e009f337 100644
--- a/paimon-spark/paimon-spark-4.1/pom.xml
+++ b/paimon-spark/paimon-spark-4.1/pom.xml
@@ -33,6 +33,10 @@ under the License.
<properties>
<spark.version>4.1.2</spark.version>
+ <!-- Spark 4 only supports Scala 2.13. Pin it locally so this _2.13
module resolves its
+ dependencies to _2.13 even when the spark4 profile is inactive
(see issue #6682);
+ otherwise it inherits scala.binary.version=2.12 from
paimon-parent. -->
+ <scala.binary.version>2.13</scala.binary.version>
</properties>
<dependencies>
diff --git a/paimon-spark/paimon-spark4-common/pom.xml
b/paimon-spark/paimon-spark4-common/pom.xml
index 7bb6da5dff..f0121cf0d1 100644
--- a/paimon-spark/paimon-spark4-common/pom.xml
+++ b/paimon-spark/paimon-spark4-common/pom.xml
@@ -35,6 +35,10 @@ under the License.
<properties>
<spark.version>${paimon-spark-common.spark.version}</spark.version>
+ <!-- Spark 4 only supports Scala 2.13. Pin it locally so this _2.13
module resolves its
+ dependencies to _2.13 even when the spark4 profile is inactive
(see issue #6682);
+ otherwise it inherits scala.binary.version=2.12 from
paimon-parent. -->
+ <scala.binary.version>2.13</scala.binary.version>
</properties>
<dependencies>