At AWS re:Invent on 1 December 2026, AWS announced that Amazon Athena is now powered by DuckDB. Athena is AWS's service for running SQL queries on files stored in the cloud, without managing any servers. The DuckDB team put it simply: "DuckDB is now available as a managed service in Amazon Athena."
First, what is DuckDB?
DuckDB is a free, open-source database built for analysis: totals, averages, groupings and joins over lots of rows. Unlike MySQL or PostgreSQL, it doesn't need a server. It runs inside your program, like a library. In Python, one pip install duckdb lets you query CSV and Parquet files, and even pandas DataFrames, with plain SQL.
import duckdb
import pandas as pd
sales = pd.DataFrame({
"city": ["Kanpur", "Lucknow", "Kanpur", "Agra"],
"amount": [250, 400, 150, 300],
})
# DuckDB can query a pandas DataFrame by its variable name
totals = duckdb.sql("""
SELECT city, SUM(amount) AS total
FROM sales
GROUP BY city
ORDER BY total DESC
""").df()
print(totals)
The result is an ordinary pandas DataFrame with one row per city. So you can switch between SQL and pandas, whichever is clearer for the task.
What changed in Amazon Athena
| What | Details |
|---|---|
| Announced | 1 December 2026, at AWS re:Invent |
| Status | Preview. General availability is planned for 2027 |
| Speed | Queries up to twice as fast as Athena engine version 3, according to AWS |
| Cost | Up to 50% cheaper on queries of 100 GB or more, according to AWS |
| Very large data | A new extension, DuckDB Scales, spreads one query across many servers for workloads beyond 100 TB |
| Next | AWS says DuckDB is also coming to Amazon EMR and Amazon Redshift (not yet in preview) |
The speed and cost figures are AWS's own. TechTarget, which reported the launch, noted that no independent test results had been published yet.
DuckDB Scales: one query, many machines
DuckDB was designed to run on one machine. That's why it's fast and simple, but it also limits how much data it can handle. DuckDB Scales is a new extension that lets DuckDB "scale out horizontally for workloads beyond 100 TB", as the DuckDB team puts it. Queries small enough for one machine still run on one. Only the really big ones are split across servers.
For now, DuckDB Scales is available only in Athena. The DuckDB team plans to release it as open source in the first half of 2027. If that happens, anyone could use the same scale-out engine outside AWS.
Scaling across machines is a core idea in system design. Our lesson on vertical vs horizontal scaling explains the trade-offs.
Why AWS did this: AI agents run a lot of queries
AWS says the main reason is AI agents. A person might run a few queries to answer a question, while an agent can run dozens. Devin Pratt, an analyst at IDC, told TechTarget: "Agents run dozens of queries where people run a few — faster, lower cost queries matter more at that volume."
AWS has big plans for DuckDB. Mai-Lan Tomsen Bukovec, AWS's VP of technology, said: "As DuckDB comes to more AWS services, DuckDB SQL becomes the universal language for AWS analytics." According to TechTarget, AWS bought the company behind DuckDB in August.
A catch for existing Athena users
Athena's earlier engine was based on Trino, and its SQL dialect is not identical to DuckDB's. Analysts quoted by TechTarget expect some existing queries to need small changes. They also advise teams to test their own queries before trusting the "twice as fast" number. Since the new engine is in preview, there is time to do that before 2027.
What this means if you are learning data
- SQL is still the language of data. Python, pandas, DuckDB and Athena all come back to SQL. If you learn
SELECT,GROUP BYandJOINwell, you can use them everywhere. - Your laptop skills now carry over to the cloud. The DuckDB you practise with locally is now the engine behind an AWS service. Code you test on a small CSV is close to what you would run on terabytes.
- Pandas and DuckDB work well together. Use pandas for cleaning and exploring, and DuckDB for big aggregations and joins. Start with our pandas DataFrame tutorial, then work through the exploratory data analysis course.
Sources
- DuckDB Scales and DuckDB in Amazon Athena, the DuckDB team, 1 December 2026
- AWS makes DuckDB the engine for Athena to meet AI's database demands, TechTarget, 1 December 2026
- AWS helps agents do more with your data, AWS News Blog
Athena powered by DuckDB is in preview. Features, regions and pricing may change before general availability.