Presto vs Spark: Choosing the Query Engine Behind Your AI Reliability Data

Presto vs Spark decided by workload: pipelined interactive SQL on Trino or Presto, fault-tolerant batch ETL on Spark, with benchmarks, Iceberg and cost.

Presto vs Spark: Choosing the Query Engine Behind Your AI Reliability Data
Written by TechnoLynx Published on 11 Jul 2026

We treat Presto vs Spark as a question about workload shape, not a contest over which engine is faster. Presto is a SQL engine for interactive queries that come back in seconds or minutes, while Spark runs SQL as batch jobs and Meta uses it for long-running ETL because of its fault tolerance. For the data behind AI reliability work, our reading is that ad-hoc drift and eval-log investigation belongs on Trino or Presto, and regression-dataset assembly and table maintenance belong on Spark.

How Presto and Spark Execute the Same Query Differently

Presto pipelines execution: tasks pass data to each other as it becomes available, and workers exchange intermediate results through in-memory buffered shuffles over HTTP rather than persisting them to disk. The Presto paper from Facebook’s engineers credits this mechanism with much lower latency than systems that write shuffle data to disk. Presto can also schedule all stages of a query at once, so data is processed as soon as it arrives, a policy intended for latency-sensitive use.

Spark splits each job into stages that depend on each other, much like the map and reduce stages in MapReduce. A driver program coordinates executors, which are processes that run tasks and store data for one application. The same Presto paper notes that Spark SQL has no end-to-end pipelining and usually persists data to a filesystem during inter-stage shuffles, which helps fault tolerance but makes it a poor fit for interactive or low-latency use.

The researchers behind the Quokka engine frame the difference as pipelined versus stagewise execution. In their account, Trino, Snowflake and Redshift push data through a pipeline of stages, which usually gives more parallelism, better resource utilisation and better cache efficiency than SparkSQL running one stage at a time. They also point out that Spark’s bulk-synchronous model gives it efficient lineage-based fault tolerance, and that it was originally designed for iterative work such as machine learning training.

None of this means Spark is weak at SQL. The original Spark SQL paper (Armbrust et al., 2015) found it generally competitive with Impala, and credits Catalyst code generation for the result.

Is Trino Faster than Spark, and When Does the Gap Close?

On a single stream of analytical SQL, Trino is faster in recent measurements. DataMonad’s April 2025 TPC-DS run at 10TB scale compared Trino 468 with Spark 4.0.0-RC2. Trino finished all queries in 4,442 seconds and Spark in 15,678 seconds. That is an average of 17.49 seconds per query for Trino and 37.65 seconds for Spark. The same report says Trino is not fault-tolerant and the other systems are.

Under concurrency the picture changes. With 10, 20 and 40 concurrent clients, Trino took 2,439, 4,867 and 9,898 seconds, and Spark took 3,168, 6,557 and 13,410 seconds. Do the division and the gap shrinks a lot. Sequentially Spark took about 3.5 times as long as Trino (15,678 / 4,442), while at 40 clients it took about 1.35 times as long (13,410 / 9,898). DataMonad judged Spark the most efficient engine at handling concurrent load, based on normalised per-query time. Trino showed the highest variance, and at 40 clients three queries ran for more than 1,000 seconds.

The Quokka results add two details. On TPC-H, Quokka’s pipelined engine was 2.1 times faster than SparkSQL on a 4-worker cluster and 1.9 times faster on 16 workers, and the authors put most of that down to blocking versus pipelined execution. They then forced Quokka to run stage by stage. Pipelining consistently won on join-heavy queries, but on queries that are almost entirely a read stage it gave no improvement.

Reliability under memory pressure matters too. In Concurrency Labs’ 1TB TPC-DS comparison on Amazon EMR (Presto 0.230, Spark 3.0.0), EMR Presto failed three queries on ORC data and four on Parquet with insufficient-memory errors, while EMR Spark had no memory failures or runs over 30 minutes. That test was run to evaluate Starburst Enterprise, a commercial Trino distribution, so treat its framing with care.

Trino’s Fault Tolerance and What It Costs Interactive Queries

Classic Presto left recovery to its clients. As of late 2018 it had no meaningful built-in fault tolerance: a worker crash failed every query running on that node, and clients were expected to retry. The Trino project later described the result for ETL: queries that run for hours can fail, and restarting them from scratch wastes resources and makes landing times hard to meet.

Trino’s fault-tolerant execution answers this with two retry policies. A QUERY policy retries the whole query and is recommended for clusters that mostly run small queries. A TASK policy retries individual tasks, needs an exchange manager that spools intermediate data, and is recommended for large batch queries. In the Tardigrade launch, Trino ran all 22 TPC-H-based queries at the same time. Without fault-tolerant execution only two finished; with it, all of them did.

Spooling is not free. The Quokka authors measured Trino with HDFS spooling and found a geometric-mean overhead of 1.5 times on 4 workers and 2.7 times on 16 workers, up to 4.8 times on one query. They also observed that the overhead grows with cluster size. Trino’s documentation warns that a TASK policy can raise latency for short queries run in high volume, and recommends a dedicated cluster for batch work. The Tardigrade post gives the same advice: fault tolerance is enabled per cluster, so long ETL and short interactive queries should run on separate clusters.

Once Trino runs with task retries for long batch work, short queries on that cluster can see higher latency, so “Trino for everything” in practice means two Trino clusters.

Which Reliability Workloads Go on Which Engine

The table maps the queries a reliability practice actually runs to the engine whose execution model fits them. The reliability examples in the first column are our mapping.

Workload Shape Better fit Why
Ad-hoc drift investigation, eval-log slicing, dashboards Short, exploratory SQL, many users Trino / Presto Pipelined, in-memory shuffles; suited to queries where sub-10-second response matters
Queries joining logs with operational databases Federated reads across systems Trino / Presto Connector API joins data from different sources in one query
Regression-dataset assembly, feature engineering Multi-stage transformation, mixed SQL and code Spark Lineage-based fault tolerance; mixes relational and procedural processing
Daily or hourly ingestion, MERGE, table rewrites, compaction Distributed writes Spark Full Iceberg write path and maintenance procedures
Long batch SQL that must land on time Hours-long, memory-heavy Spark, or Trino on a separate fault-tolerant cluster Restarts waste resources; Trino’s TASK retry adds latency
Infrequent, selective queries with no cluster to run Small scans, unpredictable volume Athena Pay per byte scanned, no idle cost

Twitter’s SQL platform shows the duration tail behind that split. More than 70% of its interactive queries finished in under a minute, but around 10% were resource-heavy queries that could take as long as a few hours and could rapidly exhaust a cluster. A drift query that should take seconds behaves very differently when it is queued behind that tail, and that contention is one reason, alongside the Trino project’s own advice on separate clusters, that we would not put heavyweight batch builds and interactive investigation on one undivided cluster.

Are Trino and Presto the Same Thing, and Where Does Athena Fit?

They share a history but they are now separate projects. Presto was built at Facebook from 2012 for low-latency interactive analytics and open-sourced in 2013. In 2018 its original creators left Facebook over control of the project, and they started the Presto Software Foundation in January 2019. Facebook, together with Alibaba, Twitter and Uber, launched the Presto Foundation under the Linux Foundation in September 2019. In December 2020 the creators’ fork, PrestoSQL, was renamed Trino.

Both projects keep the coordinator-worker architecture and pipelined, in-memory execution. Ksolves’ 2026 comparison, a secondary source, notes that Trino has offered task-level fault tolerance since version 376 while PrestoDB retries at query level, and that Trino’s Iceberg support has historically been more complete.

Amazon Athena is a serverless query service built on the Trino and Presto projects. AWS describes Athena engine version 3 as tracking the Trino and Presto projects continuously, with functionality taken from open-source Trino. So “Trino vs Presto vs Athena” is a choice between two open-source projects and a serverless service built from them.

Is Presto Still Developed, and Is Spark Outdated?

PrestoDB is under active development. The Presto project reported in February 2025 that its native C++ engine saw serious production use in 2024, with benefits reported at Meta, Uber and IBM watsonx.data. Meta’s 2022 Velox paper reports that Prestissimo, a C++ replacement for Presto’s Java workers, supported the same workloads with equal or better user-perceived performance on a third as many servers (20 instead of 60).

Spark is still actively developed too. The Spark 4.0.0 release resolved more than 5,100 tickets with contributions from over 390 people, and it added SQL features such as a VARIANT type, SQL user-defined functions and pipe syntax. The current documentation (version 4.2.0) describes Spark as a unified engine covering SQL, pandas workloads, MLlib, graph processing and Structured Streaming.

Running Spark and Trino over the Same Iceberg Tables

In an Iceberg lakehouse, multi-engine is the design intent, not a workaround. Apache Iceberg lets Spark, Trino, Presto and other engines work safely on the same tables at the same time. Every engine reads the same Parquet data, manifests and metadata files, so they all see the same table state. Readers open a specific snapshot, writers commit new snapshots atomically, and Spark can write a batch while Trino reads the previous snapshot. Running Spark maintenance alongside Trino reads causes no conflict.

The write side needs a rule. LakeOps’ guidance is to designate one writer engine per table and keep the others read-only, which removes write conflicts by design. LakeOps also says Spark has the fullest Iceberg write path, covering MERGE, deletes, compaction, snapshot expiration and partition evolution, and recommends it for ingestion, multi-stage ETL and ML feature pipelines. LakeOps sells a lakehouse maintenance product, so treat this as practitioner guidance from a vendor. Trino is not read-only, though. Its Iceberg connector (Trino 484) supports INSERT, UPDATE, DELETE and MERGE, spec versions 1 and 2 with version 3 experimental, and fault-tolerant execution for both reads and writes.

Large platforms already run this split. At Meta, Presto handles most interactive SQL while most heavy ETL runs in Spark, which is chosen for its fault tolerance on long-running queries. Uber runs Spark for ETL, feature engineering and batch ML and Presto for high-concurrency interactive analytics, both on its Hudi lake. PrestoDB can also use Spark as its execution engine, for queries that need thousands of nodes. For a wider view of how the storage layer affects reliability, see our piece on big data database choices for production AI.

What Each Option Costs to Run in the Cloud

Athena has no clusters and charges per byte scanned. That suits infrequent or unpredictable queries over well-partitioned data and becomes expensive for compute-heavy joins or frequent full scans. A permanently provisioned Trino cluster, by contrast, costs its hourly rate whether or not anyone is querying it.

Concurrency Labs puts spot instance savings at close to 80% against EC2 on-demand, provided the workload can survive instances being terminated mid-run. LakeOps recommends Spark on spot instances for batch workloads that tolerate interruption. Ksolves notes that Trino’s task-level retries suit spot or preemptible capacity better than PrestoDB’s query-level retries. Concurrency Labs also flags cross-AZ transfer at $10/TB in each direction, a cost that adds up as clusters move data between nodes.

Profile Your Own Queries Before You Commit

In DataMonad’s test Trino led by about 3.5 times sequentially and about 1.35 times at 40 clients. In Quokka’s test pipelining helped join-heavy queries and gave no improvement on the two read-only queries tested. In Quokka’s test, spooling-based fault tolerance added 1.5 to 2.7 times overhead to Trino. A published SQL engine benchmark does not tell you which of these conditions your drift queries and regression builds actually hit. Profiling your own workload does, because that context comes from profiling, not from reading blog posts.

We would start by pulling a few weeks of query history and separating short exploratory queries from the long tail, to see whether interactive and batch work need separate clusters. We see the engine choice as part of the MLOps operating model that runs your pipelines, and as a factor in how quickly the production AI reliability discipline layered on top can turn eval and drift data into a signal. For how we help teams running these stacks, see our work on AI infrastructure and production SaaS.

FAQ

What Is a Spark Executor?

An executor is a process that Spark starts on a cluster node to run tasks and store data for one application. It stays up for the life of that application.

Is Reading a Table in Spark Lazy?

Yes. Spark builds a logical plan and waits for an output operation such as count before it computes anything, which gives the optimiser room to pipeline operations.

Does Netflix Use Presto?

The 2018-era Presto paper lists Netflix among its production users, alongside Uber, Airbnb, Bloomberg and LinkedIn. The sources here do not say whether Netflix runs Trino today.