![[New Service] Amazon Athena Previews a New DuckDB-Based SQL Engine, Up to 2x Faster and Up to 50% Lower Costs #AWSreInvent](https://devio2024-media.developers.io/image/upload/f_auto,q_auto/c_limit,w_1200/v1796147079/eyecatch/kharp3fyxzpxbg7mlvxj.jpg)
[New Service] Amazon Athena Previews a New DuckDB-Based SQL Engine, Up to 2x Faster and Up to 50% Lower Costs #AWSreInvent
This page has been translated by machine translation. View original
I'm Ishikawa from the Cloud Business Division. At the AWS re:Invent 2026 CEO keynote, a new SQL engine for Amazon Athena based on the open-source analytical database DuckDB, "Amazon Athena, powered by DuckDB", was announced as a preview. For large datasets, queries are said to run up to 2x faster and cost up to 50% less compared with Athena engine version 3.
The SQL dialect, pricing model, and supported table formats differ from Athena engine version 3, so this update has many items that existing Athena users should check before migrating. This article is based on public information and a review of the Management Console screens. I did not run queries or measure performance.
What is Amazon Athena powered by DuckDB?
Amazon Athena is a serverless query service that lets you run SQL queries on data in Amazon S3. The SQL engine so far has been Athena engine version 3, which is based on Trino.
The newly added DuckDB engine runs queries written in the DuckDB SQL dialect on serverless workers provided by Athena. Tables are resolved from the existing AWS Glue Data Catalog, so there is no need to redefine tables or move data. According to the FAQ, the engine is DuckDB 2.0 and is positioned as the future SQL engine of Athena. Existing Athena engine version 3 workgroups will continue to be supported.
Also, Amazon announced on August 26, 2026 that it has agreed to acquire DuckLabs, the developer of DuckDB.
Update details
The main points described in What's New and the release notes are as follows.
- Performance and cost: For large datasets, queries run up to 2x faster and cost up to 50% less compared with Athena engine version 3. A single query is distributed across multiple nodes, returning results in seconds for tens of TB of data
- DuckDB SQL dialect: You can use
GROUP BY ALL,QUALIFY,PIVOT/UNPIVOT,ASOF JOIN, queries that start with the FROM clause,SELECT * EXCLUDE, and more - Distributed query processing: Athena scales automatically according to query complexity and data volume. Simple queries run on a single worker, while large, complex queries are distributed across multiple workers
- Retrieving results with Apache Arrow: The new
GetQueryResultStreamAPI lets you read query results in Apache Arrow format in order of arrival. A new Arrow Database Connectivity (ADBC) driver is also provided - Athena extension for DuckDB: From a local DuckDB, you can
ATTACHan Athena workgroup and JOIN the results of queries run on Athena with local data. It is open source under the Apache License 2.0 - JDBC 4.x / ODBC 4.x drivers: The new drivers support DuckDB workgroups
- Apache Iceberg v3 tables: You can query Iceberg v3 tables, including those in Amazon S3 Tables. Deletion vectors, the
VARIANTtype, row lineage, column default values, and nanosecond-precision timestamps are supported - Migration from Athena engine version 3: A migration agent (Athena migration agent) helps detect queries that need changes and rewrite them into the DuckDB SQL dialect
To get started, create a workgroup in the Athena console or switch an existing workgroup to DuckDB. It is also available from Amazon SageMaker Unified Studio, the AWS CLI and AWS SDKs, and the JDBC / ODBC / ADBC drivers.
Supported Regions
The preview is available in the following 5 Regions.
| Region | Region code |
|---|---|
| US East (N. Virginia) | us-east-1 |
| US East (Ohio) | us-east-2 |
| US West (Oregon) | us-west-2 |
| Europe (Ireland) | eu-west-1 |
| Asia Pacific (Tokyo) | ap-northeast-1 |
I checked the engine versions selectable from the AWS CLI in the Tokyo Region. DuckDB is included.
% aws --version
aws-cli/2.43.0 Python/3.14.10 Darwin/25.6.0 exe/arm64
% aws athena list-engine-versions --region ap-northeast-1 --query "EngineVersions[].SelectedEngineVersion" --output table
------------------------------
| ListEngineVersions |
+----------------------------+
| Apache Spark version 3.5 |
| PySpark engine version 3 |
| AUTO |
| Athena engine version 3 |
| DuckDB |
+----------------------------+
According to the documentation, AWS CLI and AWS SDK versions released before December 1, 2026 do not support the EngineVersion parameter of StartQueryExecution (which specifies the engine for a single query) or GetQueryResultStream. If you use these, update your CLI and SDK.
Impact on pricing
The DuckDB engine is billed differently from Athena engine version 3.
| Engine | Billing method |
|---|---|
| DuckDB engine (preview) | Charged for the compute resources (DPU) used by the query and its execution time. Per millisecond, with a minimum of 100 milliseconds per query |
| Athena engine version 3 | Charged for the amount of data scanned, or Capacity Reservations |
One DPU typically provides 4 vCPUs and 16 GB of memory. The pricing page includes the following calculation examples.
- A query that ran for 2 seconds (2,000 milliseconds) on 4 DPUs: 4 DPUs × 2,000 ms ÷ 3,600,000 ms = 0.0022222 DPU-hours. At $0.35 / DPU-hour, that is $0.0007778. Running it 1,000 times a month costs $0.78
- A query that ran for 1 second on 0.25 DPU: 0.0000694 DPU-hours, or $0.0000243. Running it 1,000,000 times a month costs $24.30
When I checked the unit price for the Tokyo Region with the Price List API, QueryExecutionInDPUHours, the per-DPU-hour unit, was $0.35. The usage type name does not mention DuckDB, so please check the pricing page for the official unit price.
% aws pricing get-products --service-code AmazonAthena --region us-east-1 \
--filters Type=TERM_MATCH,Field=regionCode,Value=ap-northeast-1 --output json \
| jq -r '.PriceList[] | fromjson | .terms.OnDemand[].priceDimensions[] | "\(.pricePerUnit.USD)\t\(.description)"' | sort
0.3500000000 $0.35 per DPU-Hour for QueryExecutionInDPUHours in Asia Pacific (Tokyo)
0.4300000000 0.43 USD per DPU-Hour for ReservedCapacityInDPUHours in Asia Pacific (Tokyo)
0.5000000000 0.50 USD per DPU-Hour for CodeExecutionInDPUHours:Spark_Execution in Asia Pacific (Tokyo)
5.0000000000 5.00 USD per Terabytes for DataScannedInTB in Asia Pacific (Tokyo)
Regarding billing and cost management, the documentation includes the following notes.
- You can specify a DPU range by setting
min-dpu-countandmax-dpu-countper workgroup or per query. The values you can set are 0.25 to 124, with defaults of 0.25 for the minimum and 124 for the maximum. However, the maximum size usable by a single query differs by Region: 60 DPUs in Tokyo and Ohio, and 124 DPUs in N. Virginia, Oregon, and Ireland - The minimum DPU you set is not a minimum charge. You may be billed for fewer DPUs than the minimum
BytesScannedCutoffPerQuery, which sets an upper limit on the amount scanned, can also be configured for DuckDB workgroups, but it is not enforced. To limit the compute of a single query, usemax-dpu-count, and you are advised to set Amazon CloudWatch alarms on usage metrics- There is no charge for storing or reading results saved in managed query results. Charges for Amazon S3, AWS Glue Data Catalog, AWS KMS, and Amazon CloudWatch apply as usual
- New DuckDB workgroups publish query metrics to CloudWatch by default
Because pricing is determined by DPUs and execution time rather than the amount scanned, the estimation method for Athena engine version 3 cannot be used as is. If you want to compare using an existing workload, check DpuConsumedInMillis (DPU milliseconds consumed) in GetQueryExecution. The documentation states that during the preview, this value may vary even for the same query.
Screens checked in the Management Console
I checked the screens related to the DuckDB engine in the Athena console in the Tokyo Region. I did not create a workgroup, save settings, or run queries.
Workgroup list
A notice about the DuckDB engine was displayed at the top of the workgroup list. It guides you to try it with [Run with DuckDB] in the query editor.

Creating a new workgroup
When I opened [Create workgroup], "Amazon Athena powered by DuckDB (Preview)" was selected as the engine version. There are 4 options:
- Amazon Athena powered by DuckDB (Preview)
- Athena v3
- Apache Spark version 3.5
- PySpark engine version 3
For query result management, "Athena managed" is the default, and query results are retained for 24 hours. With DuckDB workgroups, you can run queries without specifying an S3 bucket as the destination for query results.

The documentation has the following notes about creating workgroups.
- If you create a workgroup without specifying an engine version, it uses automatic engine selection (
AUTO), and queries run on Athena engine version 3. Automatic engine selection does not choose DuckDB - When you create a DuckDB workgroup in an account for the first time, the service-linked role
AWSServiceRoleForAmazonAthenais created. The creating principal needs theiam:CreateServiceLinkedRolepermission - The workgroup name cannot be
duckdb,athena-duckdb, orathenaduckdb
Switching an existing workgroup
Below the engine version on the creation screen, "The engine version cannot be changed after workgroup creation." was displayed. On the other hand, when I opened the edit screen of the existing Athena v3 workgroup (primary), I could select "Amazon Athena powered by DuckDB (Preview)" as the engine version. The two Spark-based options could not be selected.

"Run with DuckDB" and the migration agent in the query editor
When I opened the query editor in an Athena engine version 3 workgroup, [Use migration agent] and [Run with DuckDB (Preview)] were lined up next to [Run]. The [Use migration agent] menu has "Translate query" and "Validate query".
[Run with DuckDB (Preview)] is a feature that runs just one query on DuckDB without switching the workgroup. Athena does not automatically translate SQL between engines, so queries run with this button must be written in the DuckDB SQL dialect.

The query on the screen uses the date_format function from Athena engine version 3. DuckDB does not have date_format, so it must be rewritten with strftime. The documentation includes the following rewrite examples.
-- Athena engine version 3
SELECT date_format(value, '%Y-%m-%d %H:%i:%s');
SELECT date_add('day', 1, ts);
-- DuckDB (minutes change from %i to %M, and seconds from %s to %S)
SELECT strftime(value, '%Y-%m-%d %H:%M:%S');
SELECT ts + INTERVAL 1 DAY;
In date_format, %M is the month name, but in strftime, %M is the minute. If you copy the format string as is, minutes will be returned instead of the month name.
The workgroup edit screen also had a setting for "Athena migration agent - Preview". When enabled, queries continue to run on Athena v3 while being automatically converted for DuckDB, and the compatibility data in the migration agent report is updated.

The workgroup details screen showed a "Migration agent report - Preview" tab and "Min DPU per query" and "Max DPU per query" under Execution controls.

Migrating from Athena engine version 3
The migration agent has the following 3 functions.
- Assess: Reads the recent queries of a workgroup and reports compatibility with DuckDB
- Translate: Rewrites queries into the DuckDB SQL dialect and lists the changes
- Validate: Runs the converted queries on DuckDB and compares the row count and schema of the results with the original queries
Assess and Translate do not change the original SQL or data, and do not run the converted queries. Queries continue to run on Athena engine version 3 until you submit them to a DuckDB workgroup.
Validate compares the row count and schema. Whether aggregate values and date/time values match must be checked separately.
Based on the documentation and FAQ, I illustrated the migration flow.
To use Athena from a local DuckDB, attach a workgroup with the Athena extension for DuckDB. The procedure in the documentation is as follows. Replace us-west-2 and my-duckdb-workgroup with values from your own environment.
LOAD athena FROM aws.amazon.com;
INSTALL AND LOAD aws;
ATTACH 'arn:aws:athena' AS ath
(TYPE athena, Region 'us-west-2',
WorkGroup 'my-duckdb-workgroup');
Queries that reference attached tables run on Athena, and the results are returned to the local session in Apache Arrow format.
Usage notes
The FAQ says the preview is intended for evaluation and testing, and recommends running production workloads on Athena engine version 3 until general availability (GA). With that in mind, here are the main limitations described in the documentation. Depending on your existing table configuration and access management approach, some things cannot be used with the DuckDB engine even if you rewrite your SQL.
Query execution
- Only one SQL statement can be executed per query
- Session-related statements such as
SET,USE,ATTACH,INSTALL, andLOADare either unavailable or have no lasting effect - The time zone is fixed to UTC, and engine settings such as the memory limit and number of threads cannot be changed
- Without
ORDER BY, the order of rows in the results is not guaranteed
Tables and data formats
- Tables such as ORC, Ion, and CloudTrail, Delta Lake and Apache Hudi tables, and tables that use partition projection cannot be read
MERGE INTO,OPTIMIZE,VACUUM, andMSCK REPAIR TABLEcannot be used. Useglue_repair_tableinstead ofMSCK REPAIR TABLESHOW CREATE TABLE,SHOW COLUMNS,SHOW PARTITIONS, and similar statements also cannot be used- Iceberg tables can be read in format versions 1 to 3 and written in 2 and 3. Tables in format version 3 cannot be read by Athena engine version 3, and cannot be reverted to version 2. If you share tables between both engines, the FAQ advises keeping them at format version 2
Access and catalogs
- S3 locations managed by AWS Lake Formation, cross-account catalogs, and federated query catalogs (data source connectors) cannot be used
- Tables encrypted with CSE-KMS cannot be read
- Only the AWS Glue Data Catalog in the same Region as the workgroup is read
Conclusion
A DuckDB-based SQL engine has been added to Amazon Athena as a preview. For large datasets it is said to be up to 2x faster and up to 50% cheaper than Athena engine version 3, and it also includes result retrieval via Apache Arrow, integration with local DuckDB, and support for Apache Iceberg v3.
On the other hand, the SQL dialect, billing method (from amount scanned to DPUs and execution time), and supported table formats and access management differ from Athena engine version 3. It is available in the Tokyo Region too, so why not start by using [Run with DuckDB] and the migration agent in a workgroup separate from production, and checking how many of your existing queries work as is?
