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 29fae17708 [#14782] chore(optimizer): Bump Spark 3.5 and Iceberg 1.11
(#14783)
29fae17708 is described below
commit 29fae177089419285dcea031ab17eada83a13ae6
Author: MaSai <[email protected]>
AuthorDate: Mon Nov 9 19:45:34 2026 +0800
[#14782] chore(optimizer): Bump Spark 3.5 and Iceberg 1.11 (#14783)
### What changes were proposed in this pull request?
- Update `maintenance/optimizer/build.gradle.kts` from Spark 3.3 /
Iceberg 1.8.1 to Spark 3.5 / Iceberg 1.11 (`spark35` /
`iceberg4spark35`).
- Remove unused `spark33` / `iceberg4spark33` entries from
`gradle/libs.versions.toml` (optimizer was their only consumer).
- Split this build alignment out of #14659 per review feedback.
### Why are the changes needed?
`maintenance/jobs` and lakehouse-iceberg already use Spark 3.5 and
Iceberg 1.11. Keeping optimizer on Spark 3.3 can skew shared
`org.apache.iceberg.*` types under `IsolatedClassLoader` (for example
NestedField default APIs). Jerry asked on #14659 to land this bump
separately from column-default work.
Fixes #14782
### Does this PR introduce _any_ user-facing change?
No API changes. The optimizer module's Spark/Iceberg runtime dependency
versions change from 3.3/1.8.1 to 3.5/1.11.
### How was this patch tested?
- Diff-only dependency bump matching versions already used by
`maintenance/jobs`.
- CI on this PR will compile/test the optimizer module.
---------
Co-authored-by: Cursor <[email protected]>
---
gradle/libs.versions.toml | 7 ++-----
maintenance/optimizer/build.gradle.kts | 6 ++++--
2 files changed, 6 insertions(+), 7 deletions(-)
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"))