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.
Last verified:
Key facts
| Maintainer | The Apache Software Foundation |
|---|---|
| License | Apache-2.0 |
| Open source (OSI) | Yes |
| First release | 2014 |
| Latest stable version | 4.3.0 (Oct 30, 2026) |
| Deployment | self-hosted, managed, serverless |
| Wire compatibility | grpc |
| Query languages | SQL |
| Written in | Scala, Java, Python |
| Also known as | Spark SQL, Apache Spark, Spark |
| Website | spark.apache.org |
| Documentation | spark.apache.org |
| Source code | github.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)
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.
Link only: results not reproduced · data license CC-BY-NC-SA-4.0 · verified
ClickBench analytical DBMS leaderboard, December 2026 snapshot (link only)
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.
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
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.
12 results reproduced · data license MPL-2.0 · verified
db-benchmark group-by on 100 million rows (c6id.4xlarge), November 2026 snapshot
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.
12 results reproduced · data license MPL-2.0 · verified
db-benchmark joins on 100 million rows (c6id.4xlarge), November 2026 snapshot
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.
9 results reproduced · data license MPL-2.0 · verified
TPC-DS 100,000 GB: Alibaba Cloud E-MapReduce Serverless Spark
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.
2 results reproduced · data license not stated · verified
Sources
Last verified:
- spark.apache.org/news/index.html spark.apache.org
- spark.apache.org/releases/spark-release-4-3-0.html spark.apache.org
- spark.apache.org/sql spark.apache.org
- spark.apache.org/releases/spark-release-1-0-0.html spark.apache.org
- 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.