Amazon Web Services (AWS) has integrated the open-source analytics engine DuckDB into Amazon Athena, its service for querying data stored in Amazon S3. The company said the change would help AI agents run queries faster and at lower cost. It also plans to bring DuckDB to Amazon EMR and Amazon Redshift.
AWS said Athena queries powered by DuckDB ran up to twice as fast as those using Athena engine version 3. For queries involving 100 GB or more of data, the company claimed cost reductions of up to 50%.
The updated Athena service is currently available in preview. Customers can query data stored in Amazon S3 without setting up or maintaining separate database infrastructure.
AWS said AI agents place different demands on analytics systems because they can run multiple queries simultaneously and follow up on individual results. Traditional systems were designed to distribute queries across several servers to handle large datasets. AWS argued that improvements in server performance have made single-server processing a viable option for many analytical workloads.
DuckDB is designed to run analytical queries on a single server, reducing the need to distribute routine workloads across multiple machines. AWS said this architecture accounts for the performance and cost improvements in Athena.
For larger workloads, AWS introduced DuckDB Scales, a plugin that distributes a single query across multiple servers running DuckDB. Athena can run routine queries on a single server and distribute larger workloads across multiple servers. AWS said the feature can process datasets spanning tens of terabytes in seconds.
DuckDB Scales is available in preview. AWS plans to open-source it alongside the general availability launch of DuckDB-powered Athena in 2027.
AWS also plans to bring DuckDB to Amazon EMR, where it will run alongside existing tools, and integrate it directly into Amazon Redshift. The company expects to extend it to more analytics services throughout 2027.
The integrations will also introduce DuckDB SQL across these services. AWS said customers could write queries once and run them across different environments, reducing the need to adjust queries for different SQL implementations.
The question of how existing databases handle the demands of AI agents has emerged in discussions around the limitations of enterprise databases in agentic workflows.
