
AWS integrates DuckDB into Athena as universal analytics SQL engine
AWS is integrating DuckDB into Athena, now in preview, with 50 percent lower cost for queries beyond 100 GB and 2x faster processing than Athena engine version 3 as it refits analytics for AI agents.
AWS is integrating DuckDB into Athena, its serverless, distributed SQL query service, as part of a broader initiative to refit its analytics services for AI agents. The DuckDB engine is now in preview in Athena, and AWS says it reduces costs by 50 percent for queries beyond 100 GB and processes queries 2x faster than Athena engine version 3. AWS also plans to bring DuckDB to Amazon EMR and Amazon Redshift and describes it as the universal SQL engine for all of its analytics services.
Why AWS chose DuckDB
AWS CEO Matt Garman said during his re:Invent keynote that the company listens to customers and that the agent is an important customer AWS is listening closely to. Mai-Lan Tomsen Bukovec, vice president of technology at AWS, said in an interview that DuckDB started from a simple premise: users can have their second computer when they know how to use their first one. She said DuckDB uses techniques including vectorized execution and larger than memory processing to extract as much as possible from a single compute node.
According to Tomsen Bukovec, much data processing today relies on Apache Spark, which dates back to 2010 when compute nodes were much smaller and large queries required a cluster. She said that between 2007 and 2026, the power of a single compute node in the cloud increased by 50x. AWS found its answer in DuckLabs, which it acquired, and is using DuckDB to give AI agents a powerful building block for working with data, she said.
Agent data patterns drive the change
AWS has observed that AI agents and large language models use data differently from humans. Tomsen Bukovec said humans operate sequentially and linearly in a data pipeline, while agents take a complex question, break it into smaller topics, process the subquestions in parallel, combine a response and return it. She said agents do a similar thing when writing a data query, and the human linear process represents an eternity for an agent.
As agents become new superusers of data and process multiple queries in parallel, AWS looked for a way to adapt the ergonomics and economics of agentic data patterns for customers at scale. The company says DuckDB's efficiency is behind the cost and performance gains in Athena, and that the engine is suited to many smaller queries running in parallel on a single node.
Rollout beyond Athena
Athena engine version 3 is based on Trino and Presto. AWS says the DuckDB injection in Athena, now in preview, has resulted in a cost reduction of 50 percent on queries beyond 100 GB and processes queries 2x faster than Athena engine version 3. For queries that span multiple nodes, AWS offers DuckDB Scales, a plugin that extends queries across multiple servers. DuckDB Scales is in preview in Athena, and AWS plans to release it as open source when the Athena DuckDB engine becomes generally available in 2027.
DuckDB is also headed to Amazon EMR and Amazon Redshift, with plans to extend it to more services next year. Tomsen Bukovec said the ability to handle so much data in a single query at low cost, and to scale when necessary, represents a fundamental shift in analytics. She said this is one reason AWS is choosing DuckDB as the universal SQL engine for all of its AWS analytics services and called it a big bet.
Sources: The Register
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.