A new engine in the same service

Amazon Web Services opened a preview of DuckDB in Amazon Athena at its December 1 re:Invent keynote in Las Vegas. It gives teams a second way to query files they already keep in Amazon S3. The practical choice is which jobs to try on the new engine. A dashboard can return a different number after a SQL migration even when it reads the same data and runs without an error.

Athena is the AWS service that runs SQL over stored files without requiring customers to manage a database server. Its established engine version 3 is based on Trino. The new option can use existing entries in the AWS Glue Data Catalog, which tells Athena how to find and interpret a table. AWS lists five preview regions: Northern Virginia, Ohio, Oregon, Ireland and Tokyo. Existing Athena deployments can continue to use version 3.

Source notes: 1, 2, 9, 13, 14.

Where the local workflow travels

DuckDB is best known as an analytical database that runs inside a program or on one computer. An analyst can point it at a Parquet file, which stores data by column, and write a query without setting up a database service first. The Athena preview gives a local DuckDB client an extension that can send work to a managed Athena workgroup. AWS can split larger queries across several workers when the job warrants it.

That makes it possible to start a transformation on a small extract, then try it against the larger S3 dataset with similar SQL. A local trial can prove the query logic. The permissions, dependencies and result formats still need to be exercised on the hosted path. The smaller extract may also miss a surge of traffic or a skewed join that sends a disproportionate share of the work to one worker.

Source notes: 2, 3, 10.

A successful query can change a number

AWS documents a difference that illustrates the risk. In Athena version 3, dividing integer 5 by integer 2 yields 2. DuckDB returns 2.5. Classmethod independently reproduced that difference using the preview in Tokyo. A calculation for units per order can therefore move even when input rows, filters and column names stay the same. A comparison should check values at representative inputs as well as result types, missing values and rounding.

The service can try a single DuckDB query from certain version 3 workgroups. The override does not translate SQL, and AWS excludes workgroups that enforce their configuration. An authorized evaluation workgroup is a better starting point than altering established controls to make a trial run. Save the original query and the exact table snapshot before comparing results. Otherwise a late-arriving data file can look like a change in SQL behavior.

Source notes: 3, 4, 8.

Sharing storage is the easy part

The preview can read Iceberg version 3 tables. AWS advises teams that share tables with Athena version 3 to keep them at Iceberg format version 2 because the older query engine cannot read format version 3. A pilot that upgrades the shared table format could close off the fallback route even if the original query workgroup remains available. Use a separate table for any test that requires the newer format.

Teams should also check where access is enforced. AWS says the preview cannot use tables at S3 locations registered with Lake Formation, and cross-region S3 reads are unsupported. That rules out some workloads even when the underlying files are otherwise compatible. For a useful test, choose a dataset the preview is allowed to read under the same access rules the team expects to keep.

Source notes: 4, 7, 14.

The meter is different

AWS claims up to twice the speed and up to half the cost on large datasets compared with engine version 3. The move changes the bill as well as the engine. With DuckDB, Athena meters the compute assigned to a query and how long it runs. The existing per-scan option for engine version 3 bills by data scanned. Teams that buy reserved capacity on version 3 need a comparison based on that commitment instead.

Classmethod’s trial offers a concrete example of why the result varies. Using about one gigabyte of synthetic data in Tokyo, its DuckDB query through the Glue catalog sped up an aggregation but took longer for a distributed self-join than version 3. The comparison used three runs per condition and estimated charges from the region’s rates. It provides a useful counterexample to treating the marketing numbers as a rule for every query. It does not settle AWS’s claim about much larger datasets.

Do not carry over a cost estimate built only around how many bytes the job reads. AWS says the old per-query scan cutoff is not enforced in DuckDB workgroups. Documented compute limits cap the resources a query can use at a time. A team still needs to track runtime and query counts, particularly when an automated tool issues multiple requests on behalf of one person.

Source notes: 1, 5, 6, 8.

What a useful pilot measures

Start with a report whose output is easy to reconcile and a heavier query representative of the work the team hopes to speed up. Run both against the same snapshot with a fixed set of filters. Record end-to-end wait time, rather than only the engine’s processing time, and compare the total cost of delivering the same results. Where a system uses repeated queries to explore one request, count all of the work behind the final answer.

The preview offers a credible way to carry DuckDB queries from a local machine to a managed service without routinely copying data into a new system. The first operational test is whether a candidate job returns the same numbers under the same permissions and lands on the right side of the budget. Keeping the original version 3 path available makes that a reversible experiment.

Source notes: 3, 6, 8, 9.

Sources & Methods

We read the AWS announcement, pricing and technical documentation, then compared them with a Tokyo test by Classmethod and news reporting from The Register.

  1. AWS preview announcement — December 1 announcement, regional preview and AWS performance claims.
  2. Athena preview documentation — Managed workers, data sources and local-to-hosted extension.
  3. Running a query on another engine — Single-query trials, SQL translation and workgroup restrictions.
  4. SQL differences in Athena — Changed numeric results and constraints on shared tables and views.
  5. Athena pricing — DuckDB compute billing and current engine version 3 billing options.
  6. Athena compute and spending controls — DPU limits and why the old scan limit no longer applies.
  7. Athena preview limitations — Lake Formation, cross-Region reads and unsupported workloads.
  8. Classmethod’s Tokyo preview test — External hands-on checks with synthetic data and estimated query charges.
  9. The Register’s keynote coverage — Independent event reporting and an AWS interview on parallel agent queries.
  10. The DuckDB project’s December 1 announcement — DuckDB Scales extension and project roadmap.
  11. Amazon Datacenter.jpg — Original archive photograph, capture date, attribution and license.
  12. Creative Commons BY-SA 3.0 — Reuse requirements for the photograph.
  13. AWS re:Invent keynote schedule — December 1 keynote and location in Las Vegas.
  14. Athena preview regions — Five preview Regions and client version requirements.