#AWS#DuckDB#Athena#Database#Analytics

Athena Gets DuckDB: What the DuckLabs Deal Means for Everyday Analytics

webhani·

AWS announced a preview of a DuckDB-powered Amazon Athena at re:Invent 2026, with Amazon EMR and Redshift reportedly to follow. This comes after AWS said in August that it would acquire DuckLabs, the company behind DuckDB; the DuckDB creators are joining AWS, and AWS stated that the project stays open source under the MIT license and the independent DuckDB Foundation. We have only seen keynote coverage of the Athena preview, so we will not guess at its specifics. What we can do is explain why DuckDB matters for typical product teams and show how to use it on S3 data right now.

Why this pairing makes sense

Most analytics questions in a product company are small. "How many signups per plan last week?" "Which endpoints had the most 5xx errors yesterday?" The data is usually a few gigabytes to a few hundred gigabytes of Parquet or CSV in S3. Distributed engines handle this fine, but they carry startup latency and cost designed for much larger workloads.

DuckDB is an in-process columnar engine. It runs inside your application or notebook, reads Parquet directly, and executes vectorized queries on a single machine. AWS's stated goal, per its own announcement, is to combine DuckDB's strength on everyday queries with the scale of S3 and its analytics services. If a managed service can route small queries to a DuckDB-style engine and large ones to a distributed one, that removes a decision most teams currently make by hand.

Try it on your own S3 data

You do not need to wait for the preview. DuckDB can query S3 directly using its httpfs extension and the standard AWS credential chain:

INSTALL httpfs;
LOAD httpfs;
 
CREATE SECRET aws_s3 (
  TYPE s3,
  PROVIDER credential_chain
);
 
SELECT
  plan,
  count(*) AS signups
FROM read_parquet('s3://your-bucket/events/signups/dt=2026-11-*/*.parquet')
GROUP BY plan
ORDER BY signups DESC;

From Python, the same query runs in a few lines:

import duckdb
 
con = duckdb.connect()
con.execute("INSTALL httpfs; LOAD httpfs;")
con.execute("CREATE SECRET aws_s3 (TYPE s3, PROVIDER credential_chain)")
 
df = con.execute(
    """
    SELECT status, count(*) AS n
    FROM read_parquet('s3://your-bucket/logs/dt=2026-12-01/*.parquet')
    GROUP BY status
    ORDER BY n DESC
    """
).fetchdf()
print(df)

Run this on the machine where your data already is, such as an EC2 instance or CI runner in the same region, to avoid cross-region transfer charges.

When single-node analytics is the right choice

A simple rule we use with clients:

  • Data under roughly 1 TB scanned per query, few concurrent users: a single-node engine is usually enough, and cheaper.
  • Many concurrent dashboards, strict isolation, or multi-terabyte scans: a distributed or warehouse engine still earns its cost.
  • Scheduled batch transforms: either works; pick what your team can operate.

These thresholds are heuristics, not benchmarks. Partitioning, file sizes and column selection often matter more than the engine. Parquet files of 128 MB to 1 GB with sensible partition keys will make any engine faster, and thousands of tiny files will make all of them slow.

Things to check before adopting

  1. Preview status. A preview service can change behavior, limits and pricing. Keep production reporting on what you already run until general availability and a pricing page exist.
  2. SQL compatibility. DuckDB's SQL dialect differs from Athena's Presto/Trino-based one in functions and date handling. If you migrate queries, test results, not just syntax.
  3. Table formats. If your lake uses Iceberg, confirm how catalog and snapshot reads work in the new engine rather than assuming parity.
  4. Access control. In-process engines inherit the caller's credentials. Make sure analysts and agents use scoped, read-only roles on the buckets they query. This matters more now that coding agents routinely run ad hoc queries on your behalf.
  5. Cost model. Athena bills per data scanned today. Check whether the DuckDB-backed mode keeps that model, and compare it with running DuckDB on a small instance you already pay for.

A note on agents and analytics

A practical reason to care: coding and analytics agents are very good at writing SQL, and DuckDB makes the feedback loop short. An agent can run a query against local or S3 Parquet files in milliseconds to seconds, inspect the result, and refine. Pair that with read-only credentials and a query timeout, and you get a useful investigation tool without giving anyone warehouse admin rights.

Takeaway

The Athena preview is worth tracking, but the useful step this week is cheaper: pick one recurring report that scans less than a few hundred gigabytes, rewrite it as a DuckDB query, and compare cost and runtime against your current setup. That experiment will tell you whether the managed version is relevant to you once it is generally available.