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
Alternatives
What all query engines have in common →
Amazon AthenaAWSAWS’s serverless SQL engine for data in S3: no cluster to run, and on-demand queries cost $5 per TB scanned.
Apache CalciteOpen sourceA Java framework with everything a database needs to understand a query (SQL parser, validator, relational algebra and a rule-based, cost-based optimizer) but no storage of its own, which Hive, Flink, Druid, Dremio, Beam and many other systems embed as their SQL front end and planner.
Apache ZeppelinOpen sourceA self-hosted web notebook where each paragraph runs through an interpreter: Spark, Flink, JDBC, Python and more. Maintained, but behind Jupyter and Databricks in reach.
GizmoSQLOpen sourceA database server that wraps DuckDB (or SQLite) and serves it to many clients over Arrow Flight SQL, with TLS and authentication.
HotdataCommercialA managed SQL engine for AI agents, built in Rust on Apache DataFusion and Arrow: each agent gets short-lived “instant databases” to load data into, then runs read-only SQL, vector, full-text and geospatial queries over an HTTP API or CLI.
IbisOpen sourceA Python dataframe API that compiles to SQL, so the same code runs on DuckDB on a laptop and on BigQuery, Snowflake, PostgreSQL or more than 20 other engines.
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.
VeloxOpen sourceMeta’s open-source C++ execution engine library: it takes an already-optimized query plan and runs it with vectorized operators, and it is the engine inside Presto’s C++ workers (Prestissimo) and Apache Gluten’s native Spark.How it fits with other technologies
What Trino uses
What uses Trino
- Apache Ozonestores data files queried byTrino
- Apache Cassandrais queried with SQL, via a connector, byTrino
- Apache ORCis the default Hive-connector format inTrino
- Puffinholds NDV sketches written byTrino
- Apache Paimoncan be queried byTrino
- Apache Polarisserves Iceberg tables toTrino
- Cloudflare Basin Catalogserves Iceberg tables toTrino
- Lakekeeperserves tables and OPA permissions toTrino
- Project Nessieserves Iceberg tables toTrino
- Unity Catalogserves Iceberg tables toTrino
- Amazon Athenaruns an engine built fromTrino
- Apache Hiveserves table metadata, via HMS, toTrino
- Ibiscompiles queries to SQL forTrino
- Presto (PrestoDB)was forked in 2019 intoTrino
- Amazon S3 Tablesis queried over Iceberg REST byTrino
- Apache Amoroprovides a Mixed-format connector forTrino
- Cubecompiles metric queries to SQL forTrino
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 →Benchmarks
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
- 2012
Presto started at Facebook in the fall
- 2013
In production early in the year; open-sourced in November
- 2016
Amazon Athena launches, built on Presto
- 2019
Creators leave Facebook and form the Presto Software Foundation (PrestoSQL)
- 2020
PrestoSQL renamed Trino in December
- 2022
Fault-tolerant execution (Project Tardigrade); Athena engine 3 adopts Trino
- 2026
Release 483 ships in July
- Engineering at Meta: Presto, interacting with petabytes of data at Facebook (Nov 2013)
- Sethi et al.: Presto, SQL on Everything (ICDE 2019)
- AWS News Blog: Amazon Athena, interactive SQL queries for data in Amazon S3 (Nov 2016)
- Trino blog: We’re rebranding PrestoSQL as Trino (Dec 2020)
- Trino blog: Project Tardigrade delivers ETL at Trino speeds (May 2022)
- AWS What’s New: Amazon Athena announces upgraded query engine (Oct 2022)
- Trino release notes (Release 483, Jul 2026)
Sources11 · facts checked 5 October 2026
- Trino docs: Trino concepts (coordinator, workers, stages)
- Trino docs: Connectors
- Trino docs: Iceberg connector
- Trino docs: Delta Lake connector
- Trino docs: Hudi connector
- Apache Hudi docs: Table and query types (read-optimized queries)
- Trino docs: Fault-tolerant execution
- Trino blog: We’re rebranding PrestoSQL as Trino (Dec 2020)
- Athena docs: Engine version 3 (built from Trino)
- Amazon EMR docs: Trino
- Starburst docs: Introduction (products built on Trino)