Skip to content

Version policy

TypeSpark follows semantic versioning: MAJOR.MINOR.PATCH.

What counts as the API

  • Everything exported from typespark and typespark.functions, as documented in the API Documentation.
  • Runtime behaviour: what an operation does and which errors it raises.
  • Type annotations: code that type checks with pyright or mypy keeps type checking. TypeSpark's job is static checking, so its types are part of the API.

Names starting with _ are private and can change in any release.

Releases

Release Contains
Patch (2.0.1) Bug fixes, including types that were wrong or too strict.
Minor (2.1.0) New features, deprecations, support for new Spark or Python versions. Existing code keeps working and type checking.
Major (3.0.0) Breaking changes: removals, behaviour changes, stricter types, dropped Spark or Python versions. Each one is listed in a migration guide.

Stricter types count as breaking even when runtime behaviour doesn't change. For example, 2.0 turned plain-string units into Literal types: correct code still ran, but code that type checked before could fail to.

Deprecations

A deprecated name is marked with @deprecated in a minor release, so your type checker flags its use and Python emits a DeprecationWarning at runtime. It's removed in the next major release, and the migration guide says what to use instead.

Supported versions

Python 3.12 through 3.14, PySpark 3.5 through 4.3. The full matrix is on Installation.

The typespark[pyspark] extra pins PySpark below the next untested minor, so a new Spark release is supported once a TypeSpark minor release has been tested against it. Without the extra, TypeSpark uses whatever PySpark your environment provides.

Dropping a version. A Spark minor version stays supported while Apache Spark still maintains it or a Databricks LTS runtime still ships it, so clusters on long-term runtimes aren't left behind. Dropping it is a breaking change: it happens in a major release, after both have ended. Python versions follow the same rule against CPython's own support window.

For Spark 3.5 that means support through 2.x until at least May 2028, when the last Databricks LTS runtime on Spark 3.5 (16.4 LTS) reaches end of support.

1.x

1.x gets no more releases after 2.0. To upgrade, see Migrating from 1.x.