Spark Matrix

Open Lakehouse project

Spark Matrix: the comparison table

Which Apache Spark features each managed platform supports, and on which runtime, with every cell traced to a primary source. Start from Apache Spark and add the platforms you want to compare.

Apache Spark features by managed Spark service

175 Apache Spark features and the vendor capabilities around them, across 26 managed Spark services at their newest generally available runtime, next to Apache Spark 4.3.0 and earlier releases. Add the platforms you care about, then select a cell for the vendor quotation or the Apache source behind it.

Apache Spark 4.3.0 · 175 features · 26 platforms · Last updated

Showing Apache Spark releases only. Use Add platforms to compare to add a managed Spark service and choose its runtime.

  • Available
  • Partial
  • Not available
  • Unknown
  • Markers:
Apache Spark features (rows) across managed Spark services (columns), each at its newest generally available runtime, with Apache Spark releases for comparison. Each cell gives the support level; select it for the source.
Feature (221)Apache4.3Apache4.2Missing 29Apache4.1Missing 64Apache4.0Missing 101Apache3.5Missing 138
Spark ConnectThe client/server protocol: thin clients in any language talk gRPC to a Spark server.
List and inspect Connect sessions and their operations through the Spark REST API.
Local PySpark can keep one Spark Connect server alive across runs (SPARK_LOCAL_CONNECT_REUSE=1) for faster startup.
Ask the server for the status of operations in a session (GetStatus RPC).
spark.catalog gains create/drop database, drop table and view, truncate, analyze and partition listing, matching the DDL commands.
The Spark Connect sessions and operations tab also shows for finished applications in the Spark History Server.
A JDBC driver that speaks the Connect protocol, so BI tools and JDBC apps can query a Connect server.
The client compresses large protobuf plans (zstd) before it sends them, so big queries and local data fit in the gRPC limits.
The server sends large batches of query results in smaller Arrow chunks to stay within the message size limit.
Run the transformWithState stateful operator from a Connect client.
A pip package with only the Connect client, no JVM, for lightweight apps and notebooks.
Explicitly release a server session (ReleaseSession) and clone one (CloneSession).
Server-side exceptions with error class, SQLSTATE, stack traces and causes fetched on demand (FetchErrorDetails).
DataFrame.mergeInto(...) builds a MERGE that runs over Connect (MergeIntoTableCommand).
Save a DataFrame's results as a checkpoint from a Connect client to shorten its lineage (CheckpointCommand).
Run a command on an external system (for example a JDBC statement) through the server (ExecuteExternalCommand).
A client can reattach to a running query's result stream after a dropped connection (ReattachExecute / ReleaseExecute).
Start and manage streaming queries, and receive StreamingQueryListener events, from a Connect client.
Decoupled client/server architecture. Clients send unresolved logical plans over gRPC; the server runs them.
SparkSession.builder.remote("sc://...") gives a PySpark session backed by a remote Connect server.
A JVM client (spark-connect-client-jvm) for running Scala/Java DataFrame code against a Connect server.
Clients upload jars, Python files and archives to the server session (AddArtifacts RPC, SparkSession.addArtifacts).
Extend the protocol with your own relations, expressions and commands (RelationPlugin, ExpressionPlugin, CommandPlugin).
Structured StreamingIncremental processing, state, triggers and the real-time mode.
Streaming aggregation, dropDuplicates and transformWithState under the real-time trigger.
The real-time trigger is available from the Python DataStreamWriter.
Give a streaming source a stable name (DataStreamReader.name(), IDENTIFIED BY in SQL) so you can add, remove or reorder sources without a new checkpoint.
Python streaming readers can declare read limits (admission control) and support Trigger.AvailableNow.
When a state store snapshot is corrupt, Spark rebuilds it from older snapshots and changelogs instead of failing the query.
Optional per-row checksums in the state store detect corrupted state.
A trigger that runs long-lived batches so records flow through with millisecond-level latency, using the same Structured Streaming APIs.
The arbitrary stateful operator with composite state types (value, list, map), timers, TTL and schema evolution.
transformWithStateInPandas and the row-based transformWithState for PySpark.
Read a streaming query's state store from its checkpoint with spark.read.format("statestore").
Write streaming readers and writers in Python (DataSourceStreamReader / DataSourceStreamWriter).
Checkpoint state store changes as a changelog instead of full snapshots.
Deduplicate events whose duplicates arrive within the watermark delay, even with differing event times.
Write offset and commit logs asynchronously to cut per-batch latency.
Multiple stateful operators in one query (for example aggregation after a stream-stream join) with correct watermark propagation.
Implement StreamingQueryListener in Python.
The DataFrame-based streaming engine (micro-batch and continuous processing).
Declarative PipelinesSpark Declarative Pipelines (SDP): datasets and flows declared in SQL or Python, run as a graph.
CREATE FLOW ... AS AUTO CDC INTO declares the same change-data flow in SQL, with KEYS, SEQUENCE BY and APPLY AS DELETE WHEN clauses.
Auto CDC keeps every version of a row with __START_AT and __END_AT bounds (stored_as_scd_type=2, STORED AS SCD TYPE 2, TRACK HISTORY ON).
dp.create_auto_cdc_flow applies a change data feed to a target table by key and sequence column, with deletes, as SCD Type 1 upserts.
Declare streaming tables, materialized views and flows; Spark resolves the dependency graph and runs it.
spark-pipelines init / run / dry-run for a pipeline project defined by a spec file.
Use Python decorators in pyspark.pipelines to define materialized views, tables and append flows (@dp.materialized_view, @dp.table, @dp.append_flow).
Use SQL in a pipeline to define materialized views, streaming tables and flows that insert rows into tables (CREATE MATERIALIZED VIEW, CREATE STREAMING TABLE, CREATE FLOW ... AS INSERT INTO).
@dp.append_flow adds extra streaming flows that append into one target table, for example to merge several sources.
dp.create_sink declares an external sink (a format plus options) that flows can write to, outside the catalog.
@dp.temporary_view defines an intermediate dataset that exists only while the pipeline runs and is not published.
spark-pipelines dry-run resolves and validates the whole dataflow graph without writing any data.
spark-pipelines init creates a sample project with a pipeline spec, a storage directory and example Python and SQL definitions.
spark-pipelines run --refresh, --full-refresh and --full-refresh-all pick which datasets to update or recompute from scratch.
The server streams pipeline and flow progress events back to the client while a run executes.
SQL languageStatements, clauses and SQL semantics.
Match each row to the latest row on the other side at or before its time.
Turn JSON documents into rows and columns with a table-valued function.
Expand an array into one row per element with UNNEST in the FROM clause.
Set or change the comment of a table column with COMMENT ON COLUMN.
Query a table version or timestamp with table@v123 or table@<timestamp> (opt-in with spark.sql.timeTravel.atSyntax.enabled).
Split rows with a time or value range into fixed-width bins and distribute values across them (opt-in with spark.sql.binByRelationOperator.enabled).
Convert a cumulative counter time series to per-row deltas over an ordered window.
String similarity score for fuzzy matching of names and other short strings.
Aggregate that merges arrays from many rows into one array of distinct elements.
Open a query result and fetch its rows one at a time inside a SQL script (DECLARE ... CURSOR, OPEN, FETCH, CLOSE).
Filter on window function results without a subquery.
Read the row-level changes of a table between versions from SQL.
SET PATH and CURRENT_PATH() control the schemas searched for unqualified functions, tables and variables.
A join that keeps the K nearest rows on the other side by a distance or similarity expression (APPROX | EXACT NEAREST k BY ...), also in DataFrame.nearestByJoin.
Replace the target rows that match a condition (REPLACE ON) or a key list (REPLACE USING) and insert the new rows in one statement.
Let INSERT add new source columns to the target table, as MERGE WITH SCHEMA EVOLUTION already does.
Block-level sampling (TABLESAMPLE SYSTEM) that data sources can push down, as an alternative to row-level BERNOULLI sampling.
tuple_sketch_agg_* sketches carry a summary value per key for approximate distinct counts with sums or other aggregates.
vector_cosine_similarity, vector_l2_distance, vector_inner_product, vector_norm and vector aggregates on ARRAY<FLOAT> embeddings.
Round timestamps down to fixed-width buckets (for example 15 minutes) aligned to an origin.
WITH RECURSIVE for hierarchical and graph queries.
Declare constraints on DSv2 tables in CREATE and ALTER TABLE.
SQL scripting is generally available and spark.sql.scripting.enabled defaults to true, so BEGIN ... END blocks run without a flag.
Read fields of a VARIANT or JSON value with col:path.to.field instead of a function call.
Set a default collation on a schema (ALTER SCHEMA ... DEFAULT COLLATION) that new tables and views inherit.
Approximate most-frequent values with mergeable accumulate and combine steps.
theta_sketch_agg for distinct counts with set operations, and kll_sketch_agg_* for mergeable quantiles.
spark.sql.ansi.enabled defaults to true, so invalid casts, overflow and bad inputs raise errors instead of returning NULL.
BEGIN ... END compound statements with variables, IF, CASE, WHILE, LOOP, FOR, REPEAT, LEAVE, ITERATE and handlers.
FROM t |> WHERE ... |> AGGREGATE ... : write queries as a top-down chain of operators.
Create, set and drop temporary variables in a SQL session (DECLARE VARIABLE, SET VAR, DROP TEMPORARY VARIABLE).
Run a SQL string built at runtime, with parameter markers and INTO.
Run stored procedures from a catalog (CALL) and, starting in Spark 4.1, use SQL to list them or see their details (SHOW PROCEDURES, DESCRIBE PROCEDURE).
Let MERGE add new source columns to the target table.
Declare clustering columns for a table (CREATE TABLE ... CLUSTER BY, ALTER TABLE ... CLUSTER BY).
Machine-readable table metadata from DESCRIBE TABLE EXTENDED ... AS JSON.
IDENTIFIER(:param) turns a string into a table, column or function name, safely.
Call functions with name => value arguments.
Pass values into a SQL query with named (:name) or positional (?) placeholders in spark.sql(query, args).
Refer to an alias defined earlier in the same SELECT list.
Row-level upserts with WHEN MATCHED / NOT MATCHED [BY SOURCE] clauses on DSv2 tables.
Query a table as of a version or timestamp on catalogs that support it.
Data typesTypes beyond the classics: variant, time, geospatial, collated strings.
variant_set, variant_insert, variant_delete and friends to edit variant values in place.
TIMESTAMP_NTZ(p) / TIMESTAMP_LTZ(p) with up to nanosecond precision (preview).
TIME(p) accepts a precision up to 9 digits, so time-of-day values can hold nanoseconds.
spark.sql.geospatial.enabled defaults to true, so GEOMETRY, GEOGRAPHY and ST_ functions work without a flag, with Parquet read and write.
A time-of-day type without a date, with literals, casts and functions.
Store shapes and locations using Spark's native types and work with them using ST_ functions.
A binary semi-structured type with parse_json, variant_get and path extraction, faster than JSON strings.
Store commonly used variant fields as typed Parquet columns for column pruning and stats.
Collated strings (UTF8_LCASE, ICU locales, accent/case insensitivity) in comparisons, sorting and functions.
Mergeable approximate-count and quantile sketches as SQL aggregates.
Timestamp without time zone.
Semantic layerMetric views and other ways to define business logic once.
CREATE VIEW ... WITH METRICS defined in YAML (dimensions, measures); query measures with MEASURE().
PySparkPython DataFrame APIs, Arrow interchange and Python-defined data sources.
Put the columns of two DataFrames derived from the same source side by side, row-aligned, without a join, also over Connect.
spark.read.changes() and spark.readStream.changes() read a table's row-level changes in batch or streaming, also over Connect.
Add a consecutive row index column without dropping to the RDD API, also over Connect.
DataFrames export the Arrow C stream interface (__arrow_c_stream__), so libraries that accept Arrow PyCapsule streams can read them without a pandas copy.
A Python DataSourceReader can accept filters (pushFilters) so the source skips data before it reaches Spark.
Write batch readers and writers for any system in pure Python (pyspark.sql.datasource).
Collect a DataFrame straight into a pyarrow Table.
df.plot.line/bar/scatter/... on a PySpark DataFrame, backed by Plotly.
Build a MERGE from the DataFrame API.
Join each row of a DataFrame to the results of a query that can use values from that row (using lateralJoin in the DataFrame API).
The pandas API (pyspark.pandas) on distributed DataFrames.
UDFs and UDTFsUser-defined functions in Python, Scala and SQL: scalar, aggregate and table functions, and how they run.
Simple Python UDFs can be rewritten into native Catalyst expressions, so they run without a Python worker (spark.sql.experimental.optimizer.transpilePyUDFs).
Sending input to Python UDF workers and reading their output overlap in separate threads, which helps heavy UDFs such as model inference (spark.python.udf.pipelined.enabled).
Python UDF error tracebacks can include the values of local variables in each frame.
A gRPC-based UDF worker protocol and execution path meant for UDFs in any language (spark.sql.execution.udf.unified.execution.enabled).
Arrow and pandas grouped aggregate UDFs can read a group as an iterator of batches, and can be registered for use in SQL.
spark.sql.execution.pythonUDF.arrow.enabled defaults to true, so plain @udf functions exchange data with the JVM through Arrow.
Python UDF operators report the time spent running Python code as a SQL metric.
@arrow_udf: UDFs that take and return pyarrow arrays directly, no pandas in between.
@arrow_udtf: table functions that receive pyarrow record batches or arrays and yield pyarrow tables or batches, without per-row conversion.
@arrow_udf aggregate functions reduce a group's pyarrow arrays to one value, usable in groupBy().agg().
Grouped-map functions can consume each group as an iterator of batches, so large groups do not have to fit in memory at once.
The plain @udf decorator becomes an Arrow or pandas UDF when the function's type hints say so.
Capture logs from Python UDF workers and query them as a table.
The JVM and Python UDF workers can talk over Unix domain sockets instead of TCP (spark.python.unix.domain.socket.enabled).
Python workers can print their stack periodically, to show where a slow or hung UDF spends its time.
Use CREATE FUNCTION to define a SQL function that returns a single value or a table (scalar and table SQL UDFs). Use RETURN with a query or, for scalar functions, an expression.
A UDTF's static analyze() method sees the arguments at planning time and returns the output schema, partitioning and ordering.
Pass a whole table to a table function, partitioned and ordered (TABLE(t) PARTITION BY ... ORDER BY ... or WITH SINGLE PARTITION).
Run a Python function on each group or partition of data using PyArrow batches.
Profile Python UDF performance and memory per session (spark.profile, spark.sql.pyspark.udf.profiler).
Regular Python UDFs serialised with Arrow (useArrow=True) for much faster (de)serialisation.
Python user-defined table functions that return many rows per input, with polymorphic analyze().
Register Python user-defined table functions from a Connect client.
Register and run Python UDFs from a Connect client (CommonInlineUserDefinedFunction with a Python payload).
Line-by-line memory profiles of Python UDFs on executors, with the memory_profiler package.
@pandas_udf: vectorized Python UDFs that receive and return pandas Series or DataFrames, exchanged with the JVM through Arrow.
Python type hints (pd.Series -> pd.Series, Iterator[...], -> scalar) decide whether a pandas UDF is scalar, iterator or aggregate.
Run a Python function over each group (applyInPandas, cogroup) or each partition (mapInPandas) as pandas DataFrames.
functions.udaf(aggregator) turns a typed Aggregator into an untyped aggregate function you can register and call from SQL.
Data sourcesFormats and connectors that ship with Spark.
The official guide to writing a Data Source V2 connector.
File sources can read CSV, JSON, text, XML, Avro, Parquet and ORC files inside tar, zip and 7z archives (opt-in with spark.sql.files.archive.reader.enabled).
A connector API that lets a catalog commit several operations atomically as one transaction.
Connectors can run joins themselves (SupportsPushDownJoin); the JDBC sources for PostgreSQL, Oracle, MySQL and SQL Server use it.
Read and write XML with spark.read.xml, from_xml and schema_of_xml (formerly the spark-xml package).
from_protobuf / to_protobuf to decode and encode protobuf columns.
Connector API for DELETE, UPDATE and MERGE with delta-based or group-based writes.
Read and write Avro, plus from_avro / to_avro.
Execution and performanceHow queries run: adaptive execution, caching, scheduling.
Cache DataFrames in Arrow format (opt-in) for faster iteration on small data.
Run small queries as one task without a shuffle (opt-in), cutting fixed overhead in local mode.
Producer and consumer stages run at the same time over a streaming shuffle; real-time mode uses it for stateful queries.
Adaptive execution can replace a sort-merge join with a shuffled hash join at runtime when the build side turns out small enough.
Sliding window aggregates that cannot be inverted (min, max and similar) use a segment tree instead of rescanning each frame.
Order-independent shuffle checksums detect when a recomputed map stage produced different data, and Spark retries the whole stage instead of returning wrong results.
Skip the shuffle when both sides are already partitioned compatibly by the storage layer.
Re-optimise plans at runtime: coalesce partitions, switch join strategies, split skewed partitions.
OperationsLogging, UI, deployment and the runtime platform.
The Spark web UI sends a Content-Security-Policy header by default.
Spark runs on Java 25.
The Spark UI gets a dark theme toggle, and SQL plan graphs gain search, pan and zoom and side-by-side initial and final AQE plans.
One Spark History Server can read event logs from more than one directory.
Spark on Kubernetes can manage executors through a Kubernetes Deployment instead of individual pods.
Built-in plugins resize executor pod memory and persistent volume claims when usage passes a threshold.
PySpark supports Python 3.14.
Logs as JSON with MDC context, queryable with the built-in log data source.
Spark builds and tests on Java 21.
Spark 4 drops Java 8/11 and Scala 2.12.
A web UI tab listing Connect sessions and operations.
Machine learningSpark ML, including ML over Spark Connect.
Fit, evaluate, save and load pyspark.ml models through a Connect session (MlCommand).
Platform capabilitiesWhat the vendor adds around Spark: table formats, native engines, GPUs. Vendor-documented only.
Vendor capabilityThe vendor ships or documents Apache Iceberg support.
Vendor capabilityThe vendor ships or documents Delta Lake support.
Vendor capabilityThe vendor ships or documents Apache Hudi support.
Vendor capabilityThe vendor documents use of the open source Unity Catalog.
Vendor capabilityA vendor engine under Spark's APIs: Photon, Velox/Gluten (Fabric NEE, Lightning Engine, IBM Gluten), Fusion, the EMR runtime.
Vendor capabilityRAPIDS / cuDF or another GPU plugin documented by the vendor.
Default config overridesAlibaba Cloud only
PaimonAlibaba Cloud only
Based on EMRAWS only
Iceberg geospatialAWS only
Python versionAWS, Microsoft, IBM, Cloudera, Snowflake, Oracle only
Spark connect lake formation fgacAWS only
Spark connect multi primaryAWS only
Lts runtimeCloudera only
Spark thrift serverCloudera only
Dbconnect OSS spark serverDatabricks only
Dbconnect serverlessDatabricks only
Lakeflow auto cdcDatabricks only
Lakeflow pipelinesDatabricks only
Lakeflow pipelines real time modeDatabricks only
Uc informational constraintsDatabricks only
Uc metric viewsDatabricks only
GaGoogle Cloud only
Lakehouse runtime catalogGoogle Cloud only
Native query executionGoogle Cloud only
Runtime versionsGoogle Cloud only
Vendor backportsGoogle Cloud only
File format coverageIBM only
Service deprecatedIBM only
Dotnet for sparkMicrosoft only
Native engine ansiMicrosoft only
Native engine streamingMicrosoft only
No retirement announcedMicrosoft only
Sparkr deprecatedMicrosoft only
Conda packOracle only
Interactive sessionsOracle only
Apply in pandas with stateSnowflake only
Catalog functions and createtableSnowflake only
CogroupSnowflake only
Integral type emulationSnowflake only
Java scala versionsSnowflake only
ObserveSnowflake only
OrcSnowflake only
Rdd sparkcontext JVMSnowflake only
Session stop copyfromlocalSnowflake only
Writer bucketby sortby insertinto jdbcSnowflake only
Spark features availableof 175 shown1751461117437

The Apache Spark release columns are sorted newest first. Added services follow by how current their newest supported Spark version is, most current first, each shown at its newest generally available runtime; change the runtime from the panel or the column's Change runtime link. A * marks a Spark version the vendor states through a paired product. Select a cell for its source.

How far behind Apache Spark 4.3 is your platform?

Spark 4.2, 4.1, 4.0 are not interchangeable: each minor release adds features the older lines do not have. Of the 175 Spark features tracked in Apache Spark 4.3, this is what each line and each service at its newest generally available runtime is missing, longest bar first.

  • Microsoft HDInsight (Spark clusters)Spark 3.3.1missing 163
  • Snowflake Snowpark Connect for SparkSpark 3.5.3missing 140
  • Cloudera Cloudera Runtime (Cloudera Base on premises / Data Hub on cloud)Spark 3.5.8missing 139
  • AWS Athena for Apache SparkSpark 3.5.6missing 138
  • Cloudera Cloudera Data Engineering (Cloudera Data Services on premises)Spark 3.5.4missing 138
  • Cloudera Cloudera Data Engineering (Cloudera on cloud)Spark 3.5.4missing 138
  • Google Cloud Managed Spark on GKESpark 3.5missing 138
  • Oracle OCI Data FlowSpark 3.5.0missing 138
  • Apache Spark 3.5missing 138
  • Microsoft Synapse Analytics Apache Spark poolsSpark 3.5.5missing 138
  • IBM watsonx.data Gluten-accelerated Spark engine (Premium Edition 2.4.x)Spark 4.0missing 102
  • IBM Analytics Engine (serverless)Spark 4.0missing 101
  • Apache Spark 4.0missing 101
  • IBM watsonx.data Spark engine (Premium Edition 2.4.x)Spark 4.0.0missing 101
  • AWS EMR on EKSSpark 4.1.3missing 64
  • AWS EMR ServerlessSpark 4.1.3missing 64
  • Alibaba Cloud EMR Serverless SparkSpark 4.1.1missing 64
  • Microsoft Fabric (Spark runtime)Spark 4.1.1missing 64
  • Apache Spark 4.1missing 64
  • AWS EMR on EC2Spark 4.1.3missing 63
  • AWS Glue (Spark jobs)Spark 4.1.1missing 63
  • Google Cloud Managed Spark clustersSpark 4.2.0missing 29
  • Google Cloud Managed Spark serverlessSpark 4.2.0missing 29
  • Apache Spark 4.2missing 29
  • Databricks serverless compute for notebooks and jobsSpark 4.3.0missing 2
  • Databricks ConnectSpark 4.3.0all of 4.3
  • Databricks Runtime (classic compute)Spark 4.3.0all of 4.3

Why a version number is not enough

A runtime labelled "Spark 3.5" does not tell you whether it has Spark Connect, which SQL grammar it accepts, or what the vendor changed. Spark Matrix turns the version label into evidence. The full explorer compares every runtime in depth; the method and FAQ pages explain how each cell is sourced.