Opens in a new tab
News

AWS previews a DuckDB-powered Athena query engine

In brief

AWS announced a DuckDB-powered Athena preview on December 1. For an analytics agent, the useful comparison is the cost, latency and correctness of an entire task.

2 min read

Before you read Familiarity with SQL analytics and the distinction between a query and a full task.

Is this the right starting point?
What you will take away
Compare two query engines on a complete agent task with answer parity, elapsed time and cost bounds.
Sources
One question branches into three queries. The circle at the start represents the entire task the team needs to measure.
Original conceptual illustration for AIOpsSRE.
On this page2 sections

AWS announced a DuckDB-powered Amazon Athena preview on December 1 at re:Invent. Customers can use the managed service to query data stored in Amazon S3. AWS also announced DuckDB Scales, a plugin in preview in Athena that can distribute a query across servers. The company says it plans to open-source the plugin alongside Athena general availability in 2027. It describes DuckDB support for EMR and Redshift as future work.

What the analytics agent spends per answer

AWS reports queries running up to twice as fast as Athena engine version 3 and costs up to 50 percent lower for queries of 100 GB or more. Those figures are AWS’s reported upper bounds. The announcement does not establish what any one query or workload will see.

Imagine an analytics assistant investigating a jump in failed orders. It starts with a small query for the last hour, pulls the busiest error reasons, and runs a larger historical comparison. It also explores two questions that turn out to be dead ends. If the individual queries get cheaper but the agent branches more often, total cost per answered question can still go up. A SQL dialect that accepts the query can still return different results when the workflow depends on details like timestamp conversion, null handling or a function’s semantics.

Evaluate the preview with a fixed set of questions and the same data snapshot, permissions and result-reuse settings where the engines allow them. Bound both the query count and the data scanned or spend, since one query can be expensive. Compare the answer and the intermediate aggregates before comparing time to the final answer, queries attempted and total charges. Keep a large representative scan in the exercise alongside a small slice, since AWS’s stated cost comparison names a size threshold.

If the two engines disagree about the failed orders, inspect the SQL and intermediate rows first. Once the answers agree across the exercise, prefer the engine that keeps the complete task within your latency and spend limits.

A three-step comparison holds inputs constant, checks the answer and intermediate aggregates, and records query count, elapsed task time and total cost.
Compare the entire answer process after confirming that both engines agree on the result.

Sources

Sources & context

Sources linked in this article. Read alongside the author’s analysis; a citation does not independently verify a publisher’s claims.

Report an error or outdated detail

More on Amazon Web Services

All Amazon Web Services coverage

Keep reading

Where to go next