Apache Spark SQL

SQL and DataFrame module of Apache Spark, the distributed batch and streaming compute engine. It plans queries with the Catalyst optimizer and runs them across a cluster over files and table formats such as Parquet, Delta Lake and Iceberg, as well as JDBC sources. It is used for ETL, large-scale analytics and machine-learning pipelines, and clients can connect remotely through Spark Connect or the Thrift JDBC/ODBC server.

Spark SQL first shipped as part of Spark 1.0 in 2014 and succeeded the earlier Shark project for SQL on Spark.

Lakehouse Query Engines

Last verified:

Key facts

MaintainerThe Apache Software Foundation
LicenseApache-2.0
Open source (OSI)Yes
First release2014
Latest stable version4.3.0 (Oct 30, 2026)
Deploymentself-hosted, managed, serverless
Wire compatibilitygrpc
Query languagesSQL
Written inScala, Java, Python
Also known asSpark SQL, Apache Spark, Spark
Websitespark.apache.org
Documentationspark.apache.org
Source codegithub.com/apache/spark

Radar

adopt A proven default for its category: mature, widely run in production, with a healthy project behind it.

The standard engine for large-scale batch transformation on data lakes, with mature managed offerings on every major cloud.

Ring reviewed Dec 3, 2026.

Alternatives

All Apache Spark SQL alternatives

Related news

Benchmarks

Independent, academic and vendor-published results are listed separately; each links to a page with results, caveats and sources. See the benchmark policy.

Vendor-published

  • ClickBench data-lake variants: Parquet, Iceberg and Vortex (link only)

    ClickHouse, Inc. · · ClickBench (data lake / open table format entries) · Analytics (OLAP)

    A growing share of ClickBench entries now query open file and table formats rather than native storage, which makes the leaderboard a practical reference for lakehouse query engines and accelerators. Because many engines appear both with native storage and with Parquet or Iceberg, the leaderboard lets readers see how much each engine's own storage format contributes and how partitioning changes results. The Iceberg entries are the newest and cover only a subset of engines.

    Systems: ClickHouse, DuckDB, Trino, Presto, StarRocks, Apache Spark SQL, Apache Iceberg, Apache DataFusion, Apache Doris, Databend, Daft, Firebolt, Hyper, Umbra, Sail, Opteryx, MotherDuck (DuckLake), Spark with Gluten, Comet, Velox or Auron accelerators

    Link only: results not reproduced · data license CC-BY-NC-SA-4.0 · verified

  • ClickBench analytical DBMS leaderboard, December 2026 snapshot (link only)

    ClickHouse, Inc. · · ClickBench · Analytics (OLAP)

    ClickBench is the most widely cited open leaderboard for single-node analytical query speed, with roughly 235 system variants including embedded engines, MPP warehouses, managed cloud services, Postgres extensions and dataframe libraries. Column-oriented engines with vectorised execution dominate the hot-run rankings, while row stores and search engines trail on this scan-heavy workload. Read it as a test of one flat-table workload, not of joins, concurrency or ingestion.

    Systems: ClickHouse, DuckDB, Snowflake, Google BigQuery, Databricks, Amazon Redshift, PostgreSQL, MySQL, MariaDB, SQLite, MongoDB, Elasticsearch, OpenSearch, Apache Druid, Apache Pinot, StarRocks, Trino, Presto, Greenplum, Vertica, SingleStore, TiDB, CockroachDB, YugabyteDB, TimescaleDB, QuestDB, kdb+, Firebird, Apache Impala, Apache Hive, Apache Spark SQL, Supabase, Turso, OceanBase, Microsoft SQL Server, Amazon Aurora, Apache Doris, Apache DataFusion, Polars, Umbra, CedarDB, Hyper, Exasol, Firebolt, Databend, MotherDuck, Tinybird, Hydrolix, Velox, chDB, pg_duckdb, ParadeDB, Hologres, ByConity, CrateDB, MonetDB, Kinetica, HeavyAI, TDengine, YDB, Daft, GlareDB, Sail, about 100 further engines and variants

    Link only: results not reproduced · data license CC-BY-NC-SA-4.0 · verified

  • db-benchmark group-by on 1 billion rows (c6id.metal), November 2026 snapshot

    DuckDB Labs · · db-benchmark (DuckDB Labs fork of H2O.ai db-benchmark) · Analytics (OLAP)

    On the largest group-by dataset, DuckDB, ClickHouse, chDB, DataFusion and Polars all finished the simple low-cardinality aggregation in well under a second, while the high-cardinality question (grouping by id3) separated them more clearly. Spark took seconds to minutes on both questions, but its latest metal run is an older 4.0.0 batch. Only two of the ten group-by questions are copied here; the full report weighs all of them.

    Systems: DuckDB, ClickHouse, Apache Spark SQL, Polars, Apache DataFusion, chDB (embedded ClickHouse)

    12 results reproduced · data license MPL-2.0 · verified

  • db-benchmark group-by on 100 million rows (c6id.4xlarge), November 2026 snapshot

    DuckDB Labs · · db-benchmark (DuckDB Labs fork of H2O.ai db-benchmark) · Analytics (OLAP)

    On the mid-size dataset and a 16-vCPU machine, all six engines answered the simple aggregation quickly, with DuckDB recording the lowest first-run time for that question. On the high-cardinality question DuckDB and DataFusion were close, with chDB, ClickHouse and Polars in the next band and Spark slowest. The gap between engines is narrower than at 50 GB.

    Systems: DuckDB, ClickHouse, Apache Spark SQL, Polars, Apache DataFusion, chDB (embedded ClickHouse)

    12 results reproduced · data license MPL-2.0 · verified

  • db-benchmark joins on 100 million rows (c6id.4xlarge), November 2026 snapshot

    DuckDB Labs · · db-benchmark (DuckDB Labs fork of H2O.ai db-benchmark) · Analytics (OLAP)

    DuckDB had the lowest first-run times on both copied join questions, with Polars next. The ClickHouse server and chDB took several times longer on these joins, and Spark completed only part of the join set in its latest batch. Join performance depends heavily on each engine's join algorithm defaults, which the benchmark does not tune.

    Systems: DuckDB, ClickHouse, Apache Spark SQL, Polars, chDB (embedded ClickHouse)

    9 results reproduced · data license MPL-2.0 · verified

  • TPC-DS 100,000 GB: Alibaba Cloud E-MapReduce Serverless Spark

    Alibaba Cloud (test sponsor), published by the Transaction Processing Performance Council · · TPC-DS · Analytics (OLAP)

    Alibaba Cloud published an audited TPC-DS result at the 100 TB scale for its serverless Spark service. It is ranked third of three active results at that size on 2026-12-03, behind two newer submissions from Tencent Cloud and Alibaba MaxCompute. The engine is a vendor-modified Spark runtime, so it should not be read as a result for stock Apache Spark.

    Systems: Apache Spark SQL

    2 results reproduced · data license not stated · verified

Sources

Last verified:

  1. spark.apache.org/news/index.html spark.apache.org
  2. spark.apache.org/releases/spark-release-4-3-0.html spark.apache.org
  3. spark.apache.org/sql spark.apache.org
  4. spark.apache.org/releases/spark-release-1-0-0.html spark.apache.org
  5. databricks.com/blog/2014/07/01/shark-spark-sql-hive-on-spark-and-the-future-of-sql-on-spark.html databricks.com

Found an error? See how to report a correction.