- AWS
As AI agents become the superusers of data, AWS is transforming its analytics services with DuckDB to make querying simpler, faster, and lower cost, starting with Amazon Athena and coming to Amazon EMR and Amazon Redshift.
Written by Amazon Staff
Key takeaways
- Amazon Athena, now powered by DuckDB, runs queries up to twice as fast as Athena engine version 3 and cuts costs by up to 50% on queries of 100 GB or more.
- DuckDB Scales spreads a single Athena query across multiple servers, processing tens of terabytes of data in seconds.
- DuckDB Structured Query Language (SQL) is becoming the universal language for AWS analytics, giving agents one way to query data across systems with fewer errors.
AI agents are becoming the heaviest users of data, and they work with it differently than people do. A person asks a question, looks at the answer, and then decides what to ask next. Agents send dozens of queries at once and need answers in milliseconds instead of minutes. Organizations want analytics that work for both agents and people, with a simple way to query data wherever it lives and without costs climbing as agent use grows. But most analytics systems were built more than a decade ago, before agents existed. These systems were designed to split each query across many servers to handle larger datasets and the compute necessary to query them.
Today, servers are much more powerful, so analytics that once required a complex distributed system can now run on a single server. An analytics engine designed for today’s hardware also better serves agents’ needs for rapid querying at low cost.
That’s why AWS chose DuckDB, an open source engine built to make working with data fast and simple. DuckDB was designed to get the most out of a single server, so it answers most queries without splitting the work. With DuckDB, results come back faster and at a lower cost. That design has made DuckDB one of the fastest-growing data tools in the world, with usage skyrocketing over the past year to more than 100 million downloads a month. When agents get to pick their own tools, they most often pick DuckDB, which is a big part of why AWS sees it as the future of analytics. AWS is building that future with DuckLabs, the team that created DuckDB and is now part of AWS. This team continues to lead DuckDB as an open source project. DuckDB gives people clear, readable results and trims them down for agents so they have less to process. Because it all runs on the same DuckDB SQL language, everyone can work with data the same way wherever it lives.
Faster, lower-cost queries in Amazon Athena
Today, AWS announced that Amazon Athena is now powered by DuckDB, making it the first AWS analytics service built on this technology. Available in preview, Athena brings the speed and simplicity of DuckDB to a fully managed AWS analytics service, so customers can query data stored in Amazon S3 without setting up or maintaining a separate database or infrastructure. The result is the same Athena experience, now faster and lower cost. Customers keep their data where it is, and a query written for DuckDB runs the same way in Athena.
Athena powered by DuckDB runs queries up to twice as fast as Athena engine version 3. For queries of 100 gigabytes or more, DuckDB cuts costs by up to 50%. These gains matter most for AI agents, which reason over data by running multiple queries and following up on each result. When every answer comes back faster and costs less, an agent can explore more of the data, catch its own mistakes, and reach an accurate answer sooner. For example, a product manager at a video game company might ask an AI agent whether yesterday’s game update brought players back and increased in-game purchases. Before it answers, the agent explores the data in Athena, checking how many players logged in, how long they played, and what they bought. Because each query returns faster and costs less, the product manager gets an answer sooner and can keep asking follow-up questions without watching costs climb.
Run the biggest jobs with DuckDB Scales
Athena also now includes DuckDB Scales, a new DuckDB plugin that lets a query run across multiple servers. This enables DuckDB to be used with any dataset, no matter the size. Everyday queries, like pulling yesterday’s sales by region or looking up a customer’s recent orders, still run on a single server, which keeps them fast and lower cost. But analyzing years of transaction history or event data can quickly outgrow one server. For those jobs, Athena automatically spreads the work across multiple servers that each run DuckDB and then combines the results, so it can now process tens of terabytes of data in seconds, far more than a single server could handle.
Until now, when a job outgrew a single server, DuckDB users often had to rewrite their queries to run them somewhere else. With DuckDB Scales, the same query works for every job, from everyday questions to the largest workloads. For example, a finance team might ask an AI agent why sales dipped last quarter. The agent first runs dozens of small queries to see which regions and products declined, then runs one large query across years of transaction history to find the cause. Athena handles both automatically, so the agent never has to switch systems or rewrite its query. Even the largest jobs get the speed and lower cost of DuckDB.
DuckDB Scales is available in preview in Athena and will be open sourced alongside the Athena general availability launch in 2027.
Athena is just the start
DuckDB is coming to Amazon EMR, where it will run alongside the tools customers already use. It will also be built directly into Amazon Redshift, with more services to follow throughout 2027. As that happens, DuckDB becomes the universal engine for AWS analytics and DuckDB SQL its universal language. This means customers and their agents can write a query once and run it wherever the job fits best.
For agents, that changes how they work. A company’s data is often spread across several systems, each with its own version of SQL, and every mismatch is another chance for an agent to stumble. Take a retailer’s AI agent checking whether stores will run out of a popular product before the weekend rush. It needs sales data from Amazon Redshift and supplier shipments processed on Amazon EMR. Today, that can mean two versions of the same query. Once both services use DuckDB SQL, the agent will write the query once and run it in each place, with fewer chances for error.
AWS is also upgrading key capabilities across its analytics services. AWS Glue now runs on AWS Graviton, delivering up to 30% faster performance at up to 34% lower cost compared to x86-based workers, so the data agents and people rely on is ready sooner. And Amazon Redshift Serverless now provisions almost instantly, so agents can run SQL within seconds, with no networking to set up and no compute to configure.
With DuckDB at the center of AWS analytics, customers get a data foundation built for the next generation of analytics and for the agents that will drive it. It’s open by design, so agents and people can use their data wherever it lives.
For more details, visit:
Get the latest on everything announced at re:Invent with the AWS re:Invent News Brief.
More Amazon News
1 / 1












