From abbe026cc1eb53783d1b633728384a7c12c75f37 Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Mon, 5 Oct 2026 14:51:39 +0200 Subject: [PATCH] Build MobilitySpark against Spark 4 The pom moves spark-core and spark-sql from 3.5.1 to 4.0.1, and the job of the workflow names Spark 4.0. Spark 4.0 is the release the book's chapters on Spark run with Apache Sedona 1.8 and Delta Lake 4.0, whose environment rebuilt MobilitySpark against Spark 4.0 by editing this pom. The generated surface compiles against Spark 4 since MobilityDB/JMEOS#158, which builds a typed temporal aggregate without a Spark Column: before it, the generator applied functions.udaf to new Column(Expression), which Spark 4 removes, and TemporalAggregates did not compile. Measured: tools/refresh-from-master.sh from scratch, against MobilityDB 270106028b and JMEOS main 53ca034, passes the suite, 34 tests, with no build warning. --- .github/workflows/maven.yml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 940cd30b..e9585d0d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,7 +22,7 @@ jobs: # ── Linux ──────────────────────────────────────────────────────────────────── linux: - name: Build and test — Linux (Java 21 / Spark 3.5) + name: Build and test — Linux (Java 21 / Spark 4.0) runs-on: ubuntu-latest steps: diff --git a/pom.xml b/pom.xml index 5cdea1ca..e5b1fc07 100644 --- a/pom.xml +++ b/pom.xml @@ -31,12 +31,12 @@ org.apache.spark spark-core_2.13 - 3.5.1 + 4.0.1 org.apache.spark spark-sql_2.13 - 3.5.1 + 4.0.1 compile