AWS says Amazon Athena queries run up to 2x faster on DuckDB

In short

Up to 2x faster than Athena engine version 3, AWS says; Up to 50% lower cost on queries of 100 GB or more; 100 million+ DuckDB downloads a month, AWS says; Preview general availability and open-sourcing of Scales in 2027

What changes in Amazon Athena?

Athena lets customers query files in Amazon S3 with SQL without setting up or maintaining a database. AWS says that stays the same: customers keep their data where it is, and "a query written for DuckDB runs the same way in Athena". What changes is the engine underneath.

AWS says the new Athena is up to twice as fast as Athena engine version 3 and cuts costs by up to 50% on queries of 100 GB or more. It ties the gains to AI agents, programs that answer a question by running many queries and following up on each result. If every query is quicker and cheaper, AWS argues, an agent can explore more of the data and catch its own mistakes before it answers.

Why a single-server engine

AWS's argument is about hardware. It says most analytics systems were built more than a decade ago and were designed to split each query over many servers, because one server could not handle a large dataset. Servers are much more powerful now, so analytics that once needed a complex distributed system can run on one.

DuckDB, in AWS's words, "was designed to get the most out of a single server, so it answers most queries without splitting the work". AWS says its use has grown to more than 100 million downloads a month over the past year, and that when agents pick their own tools they most often pick DuckDB. (Both are AWS's statements; the post gives no source for them.)

How does Athena handle very large queries?

One server still has a limit. Years of transaction or event data can outgrow it. AWS's answer is DuckDB Scales, a plugin (an add-on module for DuckDB) now in preview inside Athena. For these jobs, AWS says, Athena automatically spreads the work over several servers that each run DuckDB, then combines the results, so it can process tens of terabytes of data in seconds.

The post says everyday queries, such as yesterday's sales by region, stay on one server, which keeps them fast and cheap. It also says users no longer have to rewrite a query to run it somewhere else when it outgrows a server: the same query works for small and large jobs. AWS says DuckDB Scales will be open sourced alongside Athena's general availability launch in 2027.

What comes next

AWS says DuckDB then becomes "the universal engine for AWS analytics" and DuckDB SQL its universal language, so a query is written once and run wherever the job fits best. It says this would help agents, because data spread over several systems means several versions of SQL, and each mismatch is a chance to err.

AWS also says DuckLabs, the team that created DuckDB, is now part of AWS and continues to lead DuckDB as an open source project. The post does not say how DuckDB's governance or licence is affected, and does not describe the terms of the arrangement.

What is not shown

All numbers come from AWS's announcement. It gives no benchmark, data size or query mix behind "up to 2x" and "up to 50%", and "up to" figures describe the best case. It does not say which regions or customers can use the preview, or what it costs. We have not seen an independent test.

Terms in plain English

Official channels of AWS: Website · LinkedIn · X · YouTube

Sources

Sources

Related stories

More from AI for Data Science

All stories from AI for Data Science