Skip to main content

Amazon Athena

Amazon Athena

Now powered by DuckDB, in preview. The same serverless SQL on your data lake, with faster, larger queries at a lower cost.

Why Amazon Athena?

Amazon Athena is a serverless query service that lets you analyze data in Amazon S3 using SQL, with no infrastructure to set up or manage. Athena scales automatically, so you get fast results even on larger datasets. Now available in preview, Athena is powered by DuckDB. With the DuckDB engine, Athena runs queries up to 2x faster, costs up to 50% less to query large datasets, and can return query results from datasets of tens of terabytes in seconds.

Run queries from the Athena console, call the Athena API from the AWS SDK and CLI, or connect BI tools and applications through the JDBC, ODBC, and ADBC drivers. With the DuckDB extension for Athena, you can also write queries in your local DuckDB client and offload them to Athena when they need more scale.

Amazon Athena, now powered by DuckDB (Available in preview)

Up to 2x faster queries than Athena engine version 3
Up to 2x faster
Costs up to 50% less to query large datasets
Up to 50% lower cost
Return query results from datasets of tens of terabytes in seconds
Larger scale

Benefits

Open all

    The serverless DuckDB engine runs queries up to 2x faster than Athena engine version 3, with nothing to provision or configure.

    Costs up to 50% less to run queries on large datasets than Athena version 3.

    Queries return results from datasets of tens of terabytes in seconds, so Athena reliably supports bigger, more complex SQL without splitting work or moving it to another system.

    Install DuckDB, configure your AWS profile, and offload queries to Athena with no additional configuration. Prototype in your laptop, notebook, IDE, or AI agent, then run larger queries on Athena from the same client, with results returned to DuckDB using Athena DuckDB extension.

    Try the new engine on a single query, then move a whole workgroup with one click in the console.

    Stream query results in Apache Arrow, connect with ADBC, and create, read, and write Apache Iceberg v3 tables in Amazon S3 and Amazon S3 Tables, including deletion vectors and the VARIANT type.

    Use SQL features, powered by DuckDB such as FROM-first queries, GROUP BY ALL, QUALIFY, PIVOT and UNPIVOT, ASOF JOIN, and SELECT * EXCLUDE to write simpler, more readable queries.

Use cases

Open all

    Move dashboards and exploratory queries to the DuckDB engine for answers up to 2x faster than Athena version 3, on the same data you use today.

    Athena scales each query an agent submits automatically, from quick exploratory lookups to large scans, and up to 50% lower cost on large datasets keeps spend in check as agent query volume grows.

    Prepare training and feature data with SQL on Athena, including large, long running feature queries, then stream results in Apache Arrow straight into pandas, polars, and ML frameworks without conversion or precision loss.

    Query results return from datasets of tens of terabytes in seconds, so you can run them as single query instead of splitting the work.

    Data platform teams already building with DuckDB keep their workflow and offload queries that outgrow a single machine to Athena, with no second system.

    Query and write Iceberg v3 tables, including VARIANT, so data written by one engine in your lakehouse can be queried from Athena.

Get started with Amazon Athena

Open the Athena console to try Amazon Athena with DuckDB engine