DB runtime 18
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2026 06:46 AM
Hello,
Spark 4.0.1 in Java 17 has been built with scala 2.13.17 due to incompatibiliy with scala 2.13.16 see ( https://issues.apache.org/jira/browse/SPARK-53585 in https://spark.apache.org/releases/spark-release-4.1.0.html).
How can runtime 18 have compatibility with scala 2.13.16 ? (or the runtime doc is wrong on this point ?)
Some of my scala projects fail with 2.13.16 ans need 2.13.17. Is it safe to run them in DB 18 ?
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2026 06:34 AM
Hi, good catch, and the confusion makes sense because you're mixing two separate things: the Apache Spark OSS ticket and what Databricks Runtime 18 actually ships.
SPARK-53585 bumped Scala to 2.13.17 inside the upstream Apache Spark 4.1.0 build, and that change was specifically to unblock Java 25 support (it's a sub-task of SPARK-51167, "Build and Run Spark on Java 25"). It wasn't about Java 17 compatibility at all.
Databricks Runtime 18.0 is a separate build of Spark 4.1.0 that Databricks compiles and tests itself, it doesn't have to match every dependency pin from the OSS tarball. Per the official DBR 18.0 system environment docs, it ships with:
Scala: 2.13.16
Spark: 4.1.0
JDK: Zulu21.42+19-CA (JDK 21, the new default as of DBR 18.0)
So there's no incompatibility on Databricks' side, DBR 18 runs Scala 2.13.16 on JDK 21, and that's the combination Databricks has actually validated. Scala 2.13.x patch releases are binary compatible with each other within the 2.13 line, so a library built against 2.13.17 will almost certainly still run fine against the 2.13.16 runtime unless it's doing something unusual like depending on a bugfix that only landed in .17. If you hit an actual runtime error, that'd be the thing to chase down, not the version number mismatch itself.