cloudparts

Trino

A distributed SQL engine that queries data where it lives, from Iceberg tables on S3 to a live PostgreSQL database, in one query.

What it is
Query engines
Type
Open source
Made by
Trino Software Foundation
License
Apache 2.0
Facts checked
5 October 2026

What it is

A Trino cluster has one coordinator and many workers. The coordinator parses and plans each query and splits it into stages. Workers pull data through connectors and stream intermediate results to each other in memory, stage to stage, rather than writing them to disk in between. That makes Trino good at interactive queries that finish in seconds over large tables.

Each catalog is a connector: Iceberg, Delta Lake, Hive and Hudi for lake tables, plus PostgreSQL, MySQL, Kafka, MongoDB, BigQuery and many more, so one query can join an Iceberg table with a live PostgreSQL table. Presto’s creators built the original at Facebook in 2012, left in 2018 to continue it as PrestoSQL, and renamed it Trino in December 2020. Amazon Athena’s current engine is built from Trino.

Why teams pick it

  • Federation: join lake tables with operational databases without copying either
  • Reads and writes Iceberg and Delta Lake tables, including UPDATE, DELETE and MERGE
  • ANSI SQL and more than 35 connectors
  • Apache 2.0, with managed versions such as Amazon Athena, Amazon EMR and Starburst

Watch out for

  • A long-running cluster to size and operate; by default a query fails if a node runs out of resources, unless you turn on fault-tolerant execution
  • No storage of its own, so speed depends on file layout, partitioning and table statistics
  • Hudi support is read-only, and merge-on-read tables are seen only as of their last compaction
  • Iceberg v3 support is experimental, without row-level updates or deletes on v3 tables

Good for

Data model
Tables in catalogs, one per connector: Iceberg, Delta Lake, Hive, Hudi and databases
Query language
SQL
How it scales
One coordinator, many workers; optional fault-tolerant execution retries failed work
Storage format
None of its own; it reads lake tables and databases through connectors
Written in
Java
Ways to run it
Self-hosted; Starburst, Amazon EMR, and Athena’s engine built from Trino

Alternatives

What all query engines have in common →Compare side by side →
Presto (PrestoDB)Open sourceAlso good for scans and aggregations over billions of rowsFacebook’s distributed SQL engine, now governed by the Linux Foundation, moving its workers from Java to C++ on Velox. Trino is its 2019 fork.Amazon AthenaAWSAlso good for scans and aggregations over billions of rowsAWS’s serverless SQL engine for data in S3: no cluster to run, and on-demand queries cost $5 per TB scanned.Apache SparkOpen sourceAlso good for scans and aggregations over billions of rowsThe general-purpose distributed engine for large batch jobs, streaming and machine learning, in Python, SQL, Scala, Java or R.+1 Apache GlutenApache ImpalaOpen sourceAlso good for scans and aggregations over billions of rowsAn MPP SQL engine in C++ for interactive queries over Hive tables on HDFS, Kudu, Iceberg and object storage; built and mainly sold by Cloudera.Apache DrillOpen sourceA distributed SQL engine, inspired by Google’s Dremel, that queries JSON, Parquet, CSV files and NoSQL stores in place without defining a schema first.Apache HiveOpen sourceAlso good for scans and aggregations over billions of rowsThe first SQL engine for Hadoop, and the source of the Hive Metastore, the table catalog that Trino, Spark, Impala and Flink still read.Cloudflare Basin SQLRenamedCommercialAlso good for scans and aggregations over billions of rowsCloudflare’s serverless, distributed SQL engine for Apache Iceberg tables in Basin Catalog on R2, called R2 SQL until it became generally available on 1 October 2026, billed by the data it scans.MindsDBDormantOpen sourceA federated SQL engine that queries over 200 databases, warehouses, apps and files in place, and adds knowledge bases: tables you INSERT documents into and SELECT from by meaning, for retrieval-augmented generation.ShillelaghOpen sourceA Python library and CLI that lets you query APIs, files and in-memory objects with SQL, by exposing each one as an SQLite virtual table; it is how Apache Superset reads Google Sheets.Spice.ai OSSOpen sourceA single-binary SQL engine in Rust, built on DataFusion and Arrow, that federates queries across databases, warehouses and lakes, keeps hot datasets in a local accelerated copy, and adds search and LLM APIs on top.PivotOpen sourceAlso good for scans and aggregations over billions of rowsA young open-source analytics server in Rust that speaks the PostgreSQL protocol and queries Iceberg and Delta Lake tables straight from object storage.StarRocksOpen sourceAlso good for scans and aggregations over billions of rowsAn open-source MPP analytical database with a vectorized engine that serves fast joins and real-time updates on its own tables, and also queries Iceberg, Hudi, Delta Lake and Hive tables in place.SailOpen sourceAlso good for scans and aggregations over billions of rowsA Spark Connect server written in Rust on Apache DataFusion: your PySpark code connects to it as if it were Spark, and it runs the queries without a JVM, on one machine or on Kubernetes.Apache DorisOpen sourceAlso good for scans and aggregations over billions of rowsAn open-source MPP analytical database, born at Baidu as Palo, that serves sub-second queries on fresh, updatable data through the MySQL protocol and also queries Iceberg, Hudi, Paimon and Hive tables in place.DremioCommercialA SQL lakehouse engine built on Apache Arrow, with its own Iceberg catalog and “reflections” that speed up queries without anyone changing them.DatabricksCommercialA managed lakehouse platform built on Apache Spark and Delta Lake, with Unity Catalog for governance, on AWS, Azure or Google Cloud.

How it fits with other technologies

What uses Trino

One query across an Iceberg catalog and a PostgreSQL catalog · sql

-- catalog "lake": connector.name=iceberg, iceberg.catalog.type=rest
-- catalog "app":  connector.name=postgresql
SELECT c.segment, sum(o.amount) AS revenue
FROM lake.sales.orders AS o
JOIN app.public.customers AS c ON c.id = o.customer_id
WHERE o.ts >= TIMESTAMP '2026-09-01 00:00:00'
GROUP BY c.segment
ORDER BY revenue DESC;

-- the same table as it was a week ago
SELECT count(*) FROM lake.sales.orders FOR TIMESTAMP AS OF current_timestamp - INTERVAL '7' DAY;

See it in a real stack

Open lakehouse on Iceberg →
Live model
What you’re watchingServices publish order events to Kafka. Spark reads them in micro-batches and commits them to an Iceberg table whose files live on S3. Dashboard queries run on Trino, which reads the same table.

Worth exploring

Video· February 2023Graph Queries on Data LakesWeimo Liu (PuppyGraph), Trino communityAn early talk for the Trino community making the case for a graph data lake instead of a graph database: keep the data once in tables such as Iceberg, start a separate graph query engine when you need traversals, and shut it down afterwards without losing anything. Summarised here from the event description; the speaker is PuppyGraph’s CEO, and the talk predates its product launch.
All resources →

Benchmarks

Benchmark · ClickHouse Inc.ClickBenchHow fast analytical databases run 43 SQL queries over one 100-million-row table of web analytics events, on the same cloud machines.Includes Trino · 7 caveats to read first
How to read a benchmark →
Where it came from2012–2026

By 2012, Facebook’s data warehouse held more than 300 petabytes in Hadoop, and analysts queried it through Hive. Hive turned each SQL query into MapReduce jobs, which were designed for large-scale, reliable computation and optimised for overall throughput, with every stage writing to disk. At that scale Facebook needed an interactive system optimised for low query latency.

In fall 2012, Martin Traverso, Dain Sundstrom, David Phillips and Eric Hwang, on Facebook’s Data Infrastructure team, set out to build that system, and they wanted it open source from the start. Presto went into production in early 2013 and was open-sourced that November. By then it ran more than 30,000 queries a day, scanning a petabyte, and Facebook reported it was 10x better than Hive/MapReduce in CPU efficiency and latency. Uber, Netflix and Airbnb adopted it, and Amazon based its Athena service on it.

In 2018 Facebook wanted tighter control of the project, so Traverso, Sundstrom and Phillips left and in January 2019 started the Presto Software Foundation to continue their version, PrestoSQL. Facebook set up a rival Presto Foundation under the Linux Foundation and applied for the Presto trademark, so in December 2020 the creators renamed their fork Trino.

Why it’s built this way

Pipelined, in-memory execution instead of MapReduce
MapReduce wrote every stage’s output to disk before the next could start. Presto streams data from one stage to the next as it becomes available, which is what made ad-hoc queries interactive.
A connector API instead of its own storage
Facebook’s data lived in HDFS, HBase and custom systems such as the News Feed backend. A simple storage abstraction let one engine query all of them, and is why Trino can join an Iceberg table with PostgreSQL today.
Java, with query plans compiled to bytecode
Java was fast to develop in and fit Facebook’s Hadoop infrastructure. Generating JVM bytecode for each query plan lets the JIT compiler optimise the hot loops.
Fault tolerance added later, as an option
Skipping disk checkpoints made queries fast but meant one failed node killed the whole query. Project Tardigrade (2022) added optional retries with spooled data so long ETL jobs can survive failures.

Timeline

  1. 2012

    Presto started at Facebook in the fall

  2. 2013

    In production early in the year; open-sourced in November

  3. 2016

    Amazon Athena launches, built on Presto

  4. 2019

    Creators leave Facebook and form the Presto Software Foundation (PrestoSQL)

  5. 2020

    PrestoSQL renamed Trino in December

  6. 2022

    Fault-tolerant execution (Project Tardigrade); Athena engine 3 adopts Trino

  7. 2026

    Release 483 ships in July

Sources11 · facts checked 5 October 2026

Improve this page on GitHub