Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#14782] chore(optimizer): Bump Spark 3.5 and Iceberg 1.11 (#14783)

MaSai29fae1770894
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 548b132501..119f39530c 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -78,14 +78,11 @@ caffeine = "2.9.3"
iceberg = '1.11.0'
datastrato-iceberg = "1.13.0"
experimental-iceberg-git-commit = "e6118db078e09d960600c3c302e0f220457cb388"
-# Last Iceberg release compatible with Spark 3.3.
-iceberg4spark33 = "1.8.1"
iceberg4spark35 = "1.11.0"
iceberg4spark40 = "1.11.0"
paimon = '1.2.0'
-# spark33 and spark34 are pinned by modules other than the Spark connector for their own tests, so
-# they stay after the connector dropped 3.3 and 3.4; they say nothing about connector support.
-spark33 = "3.3.4"
+# spark34 is pinned by modules other than the Spark connector for their own tests, so it stays
+# after the connector dropped 3.4; it says nothing about connector support.
spark34 = "3.4.3"
spark35 = "3.5.3"
spark40 = "4.0.3"
diff --git a/maintenance/optimizer/build.gradle.kts b/maintenance/optimizer/build.gradle.kts
index aa6b482204..8043e6afd3 100644
--- a/maintenance/optimizer/build.gradle.kts
+++ b/maintenance/optimizer/build.gradle.kts
@@ -26,9 +26,11 @@ plugins {
val scalaVersion: String =
project.properties["scalaVersion"] as? String ?: extra["defaultScalaVersion"].toString()
-val sparkVersion: String = libs.versions.spark33.get()
+// Match maintenance/jobs and catalog Iceberg 1.11 so IsolatedClassLoader's shared
+// org.apache.iceberg.* types include NestedField default APIs used by lakehouse-iceberg.
+val sparkVersion: String = libs.versions.spark35.get()
val sparkMajorVersion: String = sparkVersion.substringBeforeLast(".")
-val icebergVersion: String = libs.versions.iceberg4spark33.get()
+val icebergVersion: String = libs.versions.iceberg4spark35.get()
dependencies {
implementation(project(":api"))