DuckDB’s Redshift extension runs the warehouse query remotely, but keeps the local join on your machine
The placement of a filter or LIMIT determines whether Redshift reduces the result before sending it back to DuckDB.
AWS released an open-source Redshift extension for DuckDB on December 1. It lets an analyst or data agent send a query to Redshift from a DuckDB session and get back a DuckDB table that can be joined with a local CSV or Parquet file. The important distinction: Redshift runs the SQL you explicitly send it; it does not take over the whole DuckDB statement. AWS announcement · Extension guide
Put the filter where it will run
The redshift_query table function sends the SQL string as written, using Redshift syntax and semantics. A LIMIT, filter, or aggregation outside the function is applied in DuckDB after Redshift sends rows. If a workflow needs the top 100 orders by value, put both the ordering and the limit inside the Redshift SQL to reduce what comes back. A local filter on those 100 orders is a different question from asking Redshift for the top 100 among orders that meet the filter. Querying guide
AWS’s repository shows the split in a sales report. The remote statement joins sales in an Iceberg table with warehouse customer data and groups by state. Only the state-level results cross the network. DuckDB then joins those rows to a local state-to-region CSV, rolls them up by region, and writes the result to Parquet. The local file stays on the DuckDB side of that example. Repository example
An attachment is not a local schema
For SQL generators, there is a second distinction: an attached Redshift handle is not a browsable DuckDB catalog. The guide says a query of the form rs.schema.table is rejected. To discover tables, send Redshift commands such as SHOW DATABASES and SHOW TABLES through the function, then generate the remote SQL in Redshift’s dialect. The function accepts one statement per call, and one outer DuckDB statement can use a given handle only once. AWS documents staging a result in a DuckDB temporary table or attaching a second handle when a workflow needs to use the same target twice. Querying guide
The extension requires DuckDB v2.0.1 at launch and supports provisioned Redshift clusters, Serverless workgroups, and the new Serverless express configuration. It uses AWS IAM credentials and the attached user’s Redshift permissions. AWS announcement · Extension guide
sources
- AWS release announcementaws.amazon.com
- Redshift extension for DuckDBdocs.aws.amazon.com
- Running queries with redshift_querydocs.aws.amazon.com
- AWS DuckDB Redshift extension repository and sales examplegithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026