cloudparts

Amazon Athena

AWS’s serverless SQL engine for data in S3: no cluster to run, and on-demand queries cost $5 per TB scanned.

What it is
Query engines
Type
Managed service on AWS
Made by
Amazon Web Services
License
Proprietary
Facts checked
5 October 2026

What it is

You define tables in the AWS Glue Data Catalog, pointing at files in S3, and run SQL from the console, the API or a JDBC or ODBC driver. AWS supplies the compute for each query and takes it away when the query ends. On demand, you pay $5 for every TB a query scans, so converting data to compressed Parquet and partitioning it cuts the bill directly. For steady workloads, Capacity Reservations charge $0.30 per DPU-hour instead.

Athena engine version 3 continuously integrates open-source Trino and Presto, so its SQL and functions follow Trino’s. It reads and writes Iceberg tables, with INSERT, UPDATE, DELETE, MERGE, OPTIMIZE and time travel, and it reads Delta Lake and Hudi tables. Federated Query connectors reach sources outside S3, such as DynamoDB and other databases.

Why teams pick it

  • Nothing to run or size: query S3 moments after defining a table
  • Pay only for data scanned, with no idle cost
  • Iceberg reads and writes, with Glue as the catalog and Lake Formation to manage read access
  • Trino-compatible SQL

Watch out for

  • Cost tracks bytes scanned, so a SELECT * over raw CSV or JSON gets expensive fast
  • Iceberg tables must use the Glue catalog and format v2, and timestamps are limited to millisecond precision
  • Delta Lake is read-only, with no time travel
  • Trino connectors and fault-tolerant execution aren’t available; outside sources go through Federated Query

Good for

Query language
Trino-compatible SQL (engine version 3)
Client protocol
AWS API, plus JDBC and ODBC drivers
How it scales
Serverless: AWS supplies the compute for each query and releases it afterwards
Storage format
Files in S3 such as Parquet and ORC; reads and writes Iceberg, reads Delta Lake and Hudi
Ways to run it
AWS managed service only
Pricing model
$5 per TB scanned on demand, or $0.30 per DPU-hour with Capacity Reservations

Alternatives

What all query engines have in common →Compare side by side →
TrinoOpen sourceAlso good for scans and aggregations over billions of rowsA distributed SQL engine that queries data where it lives, from Iceberg tables on S3 to a live PostgreSQL database, in one query.Google BigQueryGoogle CloudAlso good for scans and aggregations over billions of rows and scale to zero, pay per requestGoogle Cloud’s serverless data warehouse: no clusters, and you pay per TiB scanned or per slot-hour.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.Cloudflare Basin SQLRenamedCommercialAlso good for scans and aggregations over billions of rows and scale to zero, pay per requestCloudflare’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.MotherDuckCommercialAlso good for scans and aggregations over billions of rows and scale to zero, pay per requestA serverless cloud data warehouse built on DuckDB, where one query can run partly on your laptop and partly in the cloud.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.SpiralCommercialA closed-source storage and query engine for multimodal AI data (video, images, sensor traces and tables) that keeps everything as Vortex files in your own object storage, versions every change and streams results to GPUs; access is by request.

How it fits with other technologies

Create, change and compact an Iceberg table in Athena · sql

CREATE TABLE sales.orders (
  order_id bigint, customer_id bigint, amount decimal(10,2), ts timestamp)
PARTITIONED BY (day(ts))
LOCATION 's3://acme-lake/sales/orders/'
TBLPROPERTIES ('table_type' = 'ICEBERG');

DELETE FROM sales.orders WHERE customer_id = 4711;

OPTIMIZE sales.orders REWRITE DATA USING BIN_PACK;

SELECT count(*) FROM sales.orders
FOR TIMESTAMP AS OF (current_timestamp - interval '1' day);

See it in a real stack

No architecture uses Amazon Athena yet. Drop it into the playground and wire it up yourself.Open playground →

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 Amazon Athena · 7 caveats to read first
How to read a benchmark →
Where it came from2016–2026

By 2016, many people were querying structured and semi-structured files at petabyte scale. Asking a question of data in S3 still meant work first: preprocessing, scanning, loading or indexing it, and building, managing and tuning a cluster to query it. Their questions were often ad hoc and exploratory, and they wanted answers in minutes.

AWS announced Amazon Athena at re:Invent on November 30, 2016. In his launch post, Jeff Barr described the goal as letting people run queries and act on the results “all in a matter of minutes”, without spending time on “preprocessing, scanning, loading, or indexing data”. Athena was based on Facebook’s open-source Presto engine. You defined a table with SQL DDL pointing at files in S3 (CSV, JSON, logs, Parquet or ORC) and queried them in place. There was no cluster to build, manage or tune, and you paid only for the data each query scanned. It launched in two regions.

Later releases added the Glue Data Catalog as a shared table registry, federated queries to other databases, Iceberg tables with row-level changes, and reserved capacity for steady workloads. In 2022 engine version 3 brought in the latest features from Trino, the project Presto’s creators renamed from PrestoSQL in 2020.

Why it’s built this way

Build on open-source Presto rather than a new engine
Presto had already run interactive SQL over petabytes at Facebook and read files in place, a natural fit for data sitting in S3. Engine version 3 now pulls in Trino and Presto changes continuously.
Bill per byte scanned, not per server
Ad-hoc queries are bursty, so paying for idle clusters made no sense. Charging by data scanned also rewards compressing, partitioning and converting data to columnar formats, which AWS recommended from launch.
Schema on read over files in S3
A table is just a definition pointing at files, so there is nothing to load or index: data written by any tool can be queried as soon as it lands.

Timeline

  1. 2016

    Announced at re:Invent on November 30, based on Presto

  2. 2017

    Integrates with the new AWS Glue Data Catalog

  3. 2020

    Federated Query reaches general availability in November, with connectors on Lambda

  4. 2022

    Iceberg ACID transactions GA in April; engine version 3, with the latest Trino features, in October

  5. 2023

    Provisioned Capacity offers fixed-price compute instead of per-TB billing

  6. 2026

    Capacity reservations can be bought by the minute, from 4 DPUs

Sources12 · facts checked 5 October 2026

Improve this page on GitHub