Artificial intelligence

AWS adds DuckDB to Athena to serve data-hungry AI agents

Amazon's cloud unit is putting the DuckDB engine into its Athena query service and plans to bring it to other analytics products, arguing that AI agents query data differently from people.

· 2 min read

icon
Photo: Growtika / Unsplash
  • AWS is integrating DuckDB into Athena, with the feature now in preview.
  • AWS says queries over 100 GB cost 50 percent less and run twice as fast as on Athena engine version 3.
  • DuckDB is also planned for Amazon EMR and Redshift, and AWS calls it the universal SQL engine for its analytics services.

Amazon Web Services is building the DuckDB database engine into Athena, its serverless SQL query service, as part of a wider effort to adapt its analytics products to AI agents. The Register reported the move after AWS presented it at its re:Invent conference.

AWS CEO Matt Garman said in his keynote that the company listens to its customers and that the agent is now an important one. The DuckDB option in Athena is available in preview.

Athena engine version 3 is built on Trino and Presto. According to AWS, the DuckDB-based engine cuts the cost of queries larger than 100 GB by 50 percent and processes queries twice as fast as that version, thanks to DuckDB's efficiency.

Mai-Lan Tomsen Bukovec, AWS vice president of technology, told The Register the company studied how AI agents and large language models use data. Humans work through a data pipeline step by step, she said, while an LLM splits a complex question into smaller sub-questions, handles them in parallel and then combines the results. From an agent's perspective, she added, the human linear process takes an eternity.

That pattern favors an engine that gets the most out of one machine, she argued. She said DuckDB uses vectorized execution and techniques for processing data larger than memory to push a single compute node as far as it will go. She contrasted this with Apache Spark, which dates to 2010, when nodes were much smaller and large queries needed a cluster. Tomsen Bukovec said the power of a single cloud compute node has grown 50-fold between 2007 and 2026.

For queries that do need more than one machine, AWS offers a plugin called DuckDB Scales, which spreads a query across several servers. It is also in preview in Athena. AWS plans to release it as open source once the DuckDB engine in Athena becomes generally available in 2027.

DuckDB is also coming to Amazon EMR and Amazon Redshift, and AWS intends to add it to more services next year. Tomsen Bukovec said this is why AWS is choosing it as the universal SQL engine for its analytics services, and she described the decision as "a big bet." She also called the ability to run very large queries cheaply on one node, and to scale out when needed, a fundamental shift in analytics.

Related