DuckDB on AWS: Query Redshift from Your Laptop and Run Athena on DuckDB (2026)
AWS brought DuckDB, the free database that runs on your laptop, into two of its services at re:Invent 2026: a Redshift extension for DuckDB, and an Athena engine powered by DuckDB.
The short version: with DuckDB 2.0.1, run INSTALL redshift FROM aws.amazon.com, attach your Redshift workgroup with your AWS credentials, and query Redshift from your own computer, no password needed. For Athena, create a workgroup that uses the DuckDB engine (in preview, in five Regions) and pay for compute time instead of data scanned.
Two surprises are worth knowing up front. The Redshift extension loads only in DuckDB v2.0.1, so an older or newer DuckDB simply refuses it. And Athena’s DuckDB engine doesn’t charge per terabyte scanned: it bills $0.35 per DPU-hour of compute, by the millisecond.
Jake keeps the shop’s sales history in Redshift and a spreadsheet of supplier regions on his laptop. Every month Ethan exported both to Excel and stitched them together by hand.
Jake: "Can’t the computer just put them together?"
Ethan: "Now it can. DuckDB on my laptop asks Redshift for the sales, joins them with your spreadsheet, and saves the result. One query."
New to this? The plain-English version
- DuckDB: a free, fast database that runs inside a program on your own computer, no server needed. Great for crunching CSV and Parquet files.
- SQL: the language you use to ask a database questions, like
SELECT * FROM sales. - Amazon Redshift: AWS’s data warehouse, a big database built for reporting on lots of data.
- Amazon Athena: an AWS service that runs SQL directly on files stored in Amazon S3.
- Parquet and Iceberg: file and table formats built for analytics. Parquet stores data by column; Iceberg turns a folder of Parquet files into a proper table.
- Extension: an add-on that gives DuckDB a new ability, here talking to Redshift.
- Workgroup: an Athena setting bundle that decides which engine runs your queries and where results go.
- DPU-hour: a unit of compute time. One DPU running for one hour is one DPU-hour.
Jake: "So which one is for me?"
Ethan: "If you want Redshift data on your laptop, the extension. If you run Athena queries on S3 and want them faster or cheaper, the DuckDB engine. Plenty of people will use both."
Which one do you need? Three questions
- Is your data in Redshift and do you want it next to local files? Use the Redshift extension.
- Do you query Parquet or Iceberg in S3 with Athena? Try the DuckDB engine, if you are in one of its five Regions.
- Do you rely on Delta Lake, Hudi, ORC or MERGE INTO? Stay on Athena engine version 3 for now.
The two launches side by side
| Redshift extension for DuckDB | Athena powered by DuckDB | |
|---|---|---|
| Where it runs | DuckDB on your computer; queries run on Redshift | Inside Athena, on AWS |
| Status | Available now (December 1, 2026) | Preview |
| Sign-in | Your AWS IAM credentials, no database password | Your normal Athena access |
| Data | Redshift Managed Storage, S3 Tables, Iceberg in S3 | Iceberg and Parquet tables in the Glue Data Catalog |
| Price | Your normal Redshift costs | $0.35 per DPU-hour, billed per millisecond |
| Where | Every commercial Region with Redshift | N. Virginia, Ohio, Oregon, Ireland, Tokyo |
Query Redshift from DuckDB, step by step
1. Get DuckDB 2.0.1 and check the version
Install the DuckDB command-line program for your system (64-bit Windows, macOS or Linux), start it with duckdb, and check the version. It must say 2.0.1:
SELECT version();
2. Make sure your AWS credentials work
The extension signs in with the same credentials as the AWS CLI. If aws sts get-caller-identity fails in a terminal, fix that first; our credentials fix walks through it. Your IAM identity also needs Redshift permissions for the data you query.
3. Install and load the extension
CREATE EXTENSION REPOSITORY IF NOT EXISTS aws.amazon.com;
INSTALL redshift FROM aws.amazon.com;
LOAD redshift FROM aws.amazon.com;
INSTALL downloads the build that matches your DuckDB version and platform. If it fails to load, the version is almost always the reason.
4. Attach Redshift and run a test query
Use your own workgroup name, account ID and Region:
ATTACH '' AS rs (TYPE redshift, WORKGROUP 'my-workgroup', ACCOUNT_ID '111122223333',
REGION 'us-east-1', CREDENTIAL_PROVIDER aws_default_chain);
SELECT * FROM redshift_query('rs', 'SELECT current_user');
You should see your Redshift user name. To use a named AWS profile instead, create a DuckDB secret and attach with it:
CREATE SECRET my_secret (TYPE aws, PROVIDER credential_chain, PROFILE 'my-profile', REGION 'us-east-1');
ATTACH '' AS rs (TYPE redshift, SECRET my_secret);
5. Join Redshift with a local file and save the result
This is the part that saves Jake an afternoon a month. The query inside $$ ... $$ runs on Redshift; the join and the Parquet file happen on your computer:
COPY (
SELECT r.region, SUM(s.amount) AS total
FROM redshift_query('rs', $$ SELECT state, amount FROM sales WHERE sale_date >= '2026-11-01' $$) s
JOIN read_csv('regions.csv') r USING (state)
GROUP BY r.region
) TO 'sales_by_region.parquet' (FORMAT parquet);
Your laptop only does the final step, so it isn’t limited by the size of the Redshift table, only by the size of the result. Our Redshift pricing guide explains what the Redshift side costs.
Switch Athena to the DuckDB engine
In the Athena console, create a new workgroup that uses the DuckDB engine, or switch an existing workgroup to DuckDB, then run queries in that workgroup. You can also reach it from SageMaker Unified Studio, the AWS CLI and SDKs, the JDBC, ODBC and ADBC drivers, and a DuckDB extension for Athena. Start with a new test workgroup so your existing queries keep running on engine version 3.
Your tables keep living in the AWS Glue Data Catalog (see what AWS Glue is). Iceberg, including Iceberg v3, and Parquet tables work. New Hive tables use this form:
CREATE TABLE sales_raw (state VARCHAR, amount DOUBLE)
WITH (type = 'HIVE', format = 'parquet', location = 's3://my-bucket/sales/');
What works differently on Athena’s DuckDB engine
- Queries use DuckDB’s SQL dialect, not the Trino dialect of engine version 3, so some functions and syntax change.
- One statement per query.
SET,USE,ATTACH,INSTALL,LOAD,PREPARE,BEGINandCREATE MACROaren’t supported or don’t last. - The session time zone is always UTC, and rows come back in no particular order unless you add
ORDER BY. UPDATEandDELETEwork only on Iceberg tables;MERGE INTOand cross-account catalogs aren’t in the preview.- Bucketed tables, Delta Lake, Hudi and ORC aren’t supported.
The DuckDB SQL reference for Athena marks each difference, so check it before you move a real workload.
What Athena on DuckDB costs
This is the biggest change. Athena engine version 3 charges for data scanned, $5 per terabyte. The DuckDB engine charges for compute: $0.35 per DPU-hour, billed per millisecond with a 100 millisecond minimum. Queries run up to 2 times faster and cost up to 50% less on large datasets.
| Example query | Engine version 3 (per TB scanned) | DuckDB engine (per DPU-hour) |
|---|---|---|
| Scans 200 GB | $1.00 | Depends on compute time, not size |
| 4 DPUs for 10 seconds | Not how v3 bills | About $0.004 |
The catch is predictability: you can no longer guess the price from the data size alone. Run your usual queries in a test workgroup for a week and compare, the same way our Athena cost guide suggests checking scanned bytes today.
Jake’s Monday report
- Installed DuckDB 2.0.1 on his laptop;
SELECT version();confirmed it. - Ran the three install lines and attached the shop’s Redshift Serverless workgroup with his AWS profile.
- Joined November’s sales with the supplier-regions spreadsheet and saved
sales_by_region.parquet. - Opened the result in Excel. The monthly copy-and-paste job was gone.
- Left Athena on engine version 3 for now, with a test DuckDB workgroup to compare costs for a week.
Jake: "That’s it? No more spreadsheets glued together?"
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Data Engineer – Associate • Solutions Architect – Associate (SAA-C03) • Cloud Practitioner.
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. An analyst wants to join Amazon Redshift query results with a CSV file on a laptop without exporting data or managing database passwords. Which option fits?
The Amazon Redshift extension for DuckDB. It runs the SQL on Redshift with the analyst's IAM credentials and returns the results to DuckDB, where they can be joined with local files and saved as Parquet.
2. A team pays a lot for Athena queries that scan large Parquet tables but finish quickly. Which change could lower cost?
Test Amazon Athena powered by DuckDB in a separate workgroup. It bills compute at a DPU-hour rate per millisecond instead of per terabyte scanned, and can be faster and cheaper on large datasets.
3. A data engineer plans to move Athena queries that use MERGE INTO on Delta Lake tables to the DuckDB engine preview. What is the problem?
The DuckDB engine preview does not support Delta Lake tables or MERGE INTO. Those workloads should stay on Athena engine version 3.
4. The Redshift extension fails to load in DuckDB on a developer laptop. What is the most likely cause?
A DuckDB version mismatch. The extension supports DuckDB v2.0.1, and an extension binary loads only in the DuckDB version it was built for.
5. How does the Redshift extension for DuckDB authenticate to Redshift?
With AWS IAM credentials from the default credential chain, a named profile or a DuckDB secret, combined with the user's Redshift permissions. No database passwords are used.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
Ethan: "One query, every month. And if Redshift is the slow part, that’s where the work runs, not on your laptop."
Official references for this guide
- Amazon Redshift extension for DuckDB: how it connects, credentials and targets.
- aws/duckdb-redshift on GitHub: install steps, platforms and the DuckDB version.
- Amazon Athena powered by DuckDB and its SQL reference.
- Amazon Athena pricing: the DuckDB engine’s DPU-hour pricing.
Frequently asked questions
What did AWS announce for DuckDB?
Two things on December 1, 2026: an Amazon Redshift extension for DuckDB, which lets you run Redshift queries from DuckDB on your own computer, and Amazon Athena powered by DuckDB, a preview engine that runs Athena queries on DuckDB.
How do I install the Redshift extension for DuckDB?
In DuckDB 2.0.1, run CREATE EXTENSION REPOSITORY IF NOT EXISTS aws.amazon.com; then INSTALL redshift FROM aws.amazon.com; and LOAD redshift FROM aws.amazon.com;. Then ATTACH your Redshift workgroup or cluster.
Why won’t the Redshift extension load in my DuckDB?
Check your DuckDB version. The extension supports DuckDB v2.0.1, and an extension binary loads only in the DuckDB version it was built for. Run SELECT version(); and upgrade or change to 2.0.1.
Do I need a Redshift password for the DuckDB extension?
No. Every query runs with your AWS IAM credentials and your Redshift permissions, from the default credential chain, a named profile or a DuckDB secret. There are no database passwords to manage.
Does the DuckDB extension copy my Redshift data to my laptop?
No. It sends your SQL to Redshift and runs it on Redshift’s compute. Only the results come back, as DuckDB tables you can join with local files or save as Parquet.
Does the Redshift extension work on Windows?
Yes, on 64-bit Windows (x86_64), as well as macOS on Apple silicon and Intel, and Linux on x86_64 and ARM. INSTALL downloads the right build for your platform.
Which Redshift setups does the DuckDB extension support?
Provisioned clusters, Redshift Serverless workgroups and Redshift Serverless express configuration. It can read Redshift Managed Storage, Amazon S3 Tables and Iceberg data in Amazon S3.
Is Athena powered by DuckDB free to try?
It’s a preview, but queries are billed: $0.35 per DPU-hour of compute, charged per millisecond with a 100 millisecond minimum. It is not billed per terabyte scanned.
How is Athena DuckDB pricing different from normal Athena?
Athena engine version 3 charges for data scanned, $5 per terabyte. The DuckDB engine charges for compute time instead, in DPU-hours, so a query that scans a lot but finishes fast can cost much less.
How do I switch Athena to DuckDB?
Create a workgroup that uses the DuckDB engine, or switch an existing workgroup to DuckDB, then run queries in that workgroup. Keep your production workgroup on engine version 3 until you have tested your queries.
Will my Athena SQL queries work on the DuckDB engine?
Not always. It uses DuckDB’s SQL dialect, runs one statement per query, fixes the time zone at UTC, and doesn’t support statements like SET, USE, ATTACH or PREPARE. Test each query before moving a workgroup.
Which table formats does Athena powered by DuckDB support?
Iceberg (including v3) and Parquet tables in the AWS Glue Data Catalog. Bucketed tables, Delta Lake, Hudi and ORC aren’t supported, and UPDATE and DELETE work only on Iceberg tables.
Which Regions have Athena powered by DuckDB?
Five during the preview: US East (N. Virginia), US East (Ohio), US West (Oregon), Europe (Ireland) and Asia Pacific (Tokyo).
Is Athena faster on DuckDB?
Queries run up to 2 times faster and cost up to 50% less on large datasets than on Athena engine version 3. Results on smaller or different queries vary, so time your own.
What is Redshift Serverless express configuration?
A ready-made Redshift Serverless setup that the DuckDB extension uses by default, with the database dev. It is built to run SQL in about 2 seconds with no setup.
Can I save Redshift results as a Parquet file with DuckDB?
Yes. Wrap redshift_query in a COPY ... TO 'file.parquet' (FORMAT parquet) statement, and you can join local CSV or Parquet files in the same query.
Revision note. Written December 1, 2026, the day both launches went live. Prices and preview Regions can change, so check the live Athena pricing page before you move a workload. “Many hands make light work”: let Redshift do the heavy part and your laptop the rest.