AWS Puts DuckDB at the Heart of Athena and Distributes Queries Across Servers

AWS Puts DuckDB at the Heart of Athena and Distributes Queries Across Servers

AWS has rebuilt Amazon Athena on DuckDB and added DuckDB Scales to distribute large queries across multiple servers. The preview version promises queries up to twice as fast and up to 50% lower costs for workloads of 100 GB or more, according to AWS. DuckDB becomes the common engine the company wants to bring to its analytics portfolio.

The decision changes the role of an engine known precisely for running on a single machine. DuckDB was created to run analytics on a laptop or powerful server without deploying distributed infrastructure. AWS retains that model for small tasks, but adds a way to scale up when the volume exceeds what a single machine can handle.

A local engine with a path to scale

In the new Athena, users query data stored in S3, AWS's cloud storage service. Routine workloads still run on one server. If a query is too large—for example, an analysis of years of transaction history—Athena splits it into hundreds or thousands of smaller tasks, runs them on DuckDB instances, and recombines the results, according to GeekWire.

flowchart TD
    A["Athena query"] --> B{"Does it fit on one server?"}
    B -->|"Yes"| C["DuckDB on one server"]
    B -->|"No"| D["DuckDB Scales splits the workload"]
    D --> E["Tasks across multiple servers"]
    E --> F["Athena combines the results"]

The change aims to combine two approaches that are often presented as alternatives: running analytics on one machine and distributing it across several. AWS says current hardware can handle many queries on a single server at lower cost and with less coordination overhead than traditional distributed systems. But for queries that do outgrow one machine, Scales adds automatic distribution without requiring the query to be rewritten, according to SiliconANGLE.

The move also addresses the more demanding workloads of some AWS customers. Andy Warfield, AWS vice president and distinguished engineer, told GeekWire that most queries are small, but a few scan much of the data. The stated goal is for DuckDB to handle «every size of query», from simple tasks to those large-scale analyses.

Agents are changing usage patterns

AWS presents AI agents as one reason to accelerate the change. While a person typically submits queries one after another, an agent can launch dozens at once and use each response to prepare new requests. In this pattern, response time and the cost of each query matter just as much as the ability to process a huge dataset.

The company says that when agents can choose their tools, DuckDB is the one they select most often. It also says DuckDB is downloaded more than 100 million times a month. SiliconANGLE, however, puts monthly downloads at more than 10 million: the two publications give different figures, so they should not be treated as a single confirmed measure.

Integration with agents goes beyond the query engine. DuckDB 2.0, released in October, added an agent mode to its command-line interface: it detects when a coding agent is using it, avoids the column format intended for human readers, and reduces output to use fewer tokens. Hannes Mühleisen, DuckDB's co-creator, calls this «AX», short for «agent experience».

AWS also wants agents to find the same SQL dialect across different analytics services. SiliconANGLE notes that syntax differences between platforms can cause errors when agents move queries from one system to another. A common language will not eliminate every error, but it does reduce one specific source of incompatibility that AWS wants to address.

Less SQL to describe the data

How much users have to write is changing too. According to Warfield, queries that previously required «tens or hundreds of lines» to describe the layout of the data were becoming, in early tests, a single line pointing to an S3 folder. This is a practical change for teams maintaining queries and analytics workflows: less setup code can mean less work, although the new version's behavior is still being evaluated in preview.

AWS says Athena on DuckDB can run queries up to twice as fast as Athena engine version 3 and reduce the cost of queries of 100 GB or more by up to 50%. SiliconANGLE cautions that these performance figures have not been independently verified. They are therefore results attributed to AWS, not a guarantee of improvement for every query or dataset.

Pricing has not been finalized either. Warfield told GeekWire that it will probably be more closely tied to the compute capacity used, while AWS finalizes the model. For companies comparing analytics costs, this variable will be decisive: the announced savings are not enough to calculate spending without knowing how usage will be measured and billed.

Integration goes beyond Athena

Athena is the first major product to emerge from the DuckLabs acquisition agreement announced in August, according to GeekWire. AWS had already integrated DuckDB into Aurora PostgreSQL in September, according to SiliconANGLE, allowing users to query transactional and historical data without creating separate pipelines. The company also plans to bring it to EMR, its data processing service, and Redshift, its data warehouse, with more services to follow in 2027.

For companies, that roadmap points to a platform with a shared engine and SQL dialect in more places. If it comes to fruition, teams could reduce differences between services when moving queries or automating analytics with agents. The trade-off is that AWS will define a larger part of the DuckDB experience within its products, and companies will need to assess which features depend on Athena or other AWS services.

The strategy also competes for ground with Snowflake and Databricks, which sell data analytics platforms. AWS wants S3 to be more than a place to store information: it also aims to make it the point from which that information is analyzed. Warfield denied that he would describe it as a direct response to those rivals and told GeekWire: «We partner with all of those folks.»

Scales' open-source release remains to be seen

The distinction between DuckDB and DuckDB Scales is important. DuckDB remains free and open-source software under the DuckDB Foundation; the project was not part of the acquisition, according to GeekWire. Scales, by contrast, is being developed privately and is currently available only in the Athena preview. AWS and Mühleisen plan to release it as open-source software in 2027 under DuckDB's same MIT license.

There is both a technical and a validation reason for the wait. Mühleisen said the team had not previously released a scale-out system and wanted to test it with real traffic. Athena makes that possible in a service AWS describes as a large shared infrastructure: many tasks from different customers run in parallel, so an exceptionally large query can have less relative weight across the whole system.

The DuckDB Foundation is not connected to the acquisition and, according to Mühleisen, the open-source version of Scales will not depend on AWS or any particular cloud. That independence can be verified once the code is available. Until then, companies that need to distribute workloads across servers in this implementation will depend on the Athena preview and the terms AWS ultimately sets.

The current version of Athena will remain available, and AWS plans AI-assisted tools to help customers migrate. The new Athena is in preview; Warfield said AWS expects it to reach general availability in early 2027. The final pricing and the open-source release of Scales are the two milestones that will determine how the technical promise translates into a production option.

Sources: GeekWire, SiliconANGLE, Amazon News