Athena, DuckDB and Redshift on Arc Without Copying Data

#Amazon Athena#DuckDB#Amazon Redshift#Redshift Serverless#AWS Glue#Apache Iceberg#zero-copy#observability#Telegraf#time-series database#Parquet#Amazon S3#Arc
Cover image for Athena, DuckDB and Redshift on Arc Without Copying Data

Over the last two weeks we showed Databricks, Power BI and Snowflake reading Arc's data in place. All three needed some setup on their side: a federated catalog, a OneLake shortcut, an external volume and a catalog integration.

AWS's own engines needed the least. Arc 27.01.1, out in early January, registers every table it publishes in the AWS Glue Data Catalog, and Glue is where Athena and Redshift look first. When we opened Athena, Arc's tables were already there. In Redshift Serverless we didn't even create a schema.

Then, on December 1, Athena got a second engine. DuckLabs, the company behind DuckDB and now part of AWS, announced DuckDB inside Athena, in preview. Arc's SQL is DuckDB's, so we ran it on the same tables the same day. A query written for Arc, one Athena's original engine can't parse, ran there unchanged. That's the last part of this post.

How it works

Architecture: Arc writes Parquet and Iceberg metadata to its S3 bucket and moves the AWS Glue table pointer after each publish. Amazon Athena and Redshift Serverless read the pointer from Glue and Arc's files from S3, read-only.
Arc writes the files and moves the Glue pointer. Athena and Redshift read both.

Arc writes Parquet and describes it as Apache Iceberg. With iceberg.glue.enabled = true it keeps one Glue table per measurement and moves the table's pointer to each new version within seconds of publishing it. Glue stores only that pointer; the data stays in Arc's files, in your bucket.

There is no Glue crawler in this picture, and no COPY INTO a Redshift table. The catalog entry exists because Arc wrote it, and it changes because Arc moves it.

The data: a year of our own servers

For this one we used data we know well: a year of Telegraf metrics from our own infrastructure. That's three Linux hosts: two production servers (72 and 56 cores) and a lab machine, reporting CPU, memory, disk, disk I/O, network, load, processes and swap once a minute, from November 2025 to November 2026. That's 21.7 million rows across eight measurements. We replaced the host names with prod-1, prod-2 and lab-1 and left everything else as it was, gaps included.

We imported it into a 27.01.1 build of Arc on an EC2 instance, writing to S3 in us-east-2, and Arc did the rest: hourly files compacted into daily ones, eight Iceberg tables, eight Glue tables in the database arc_infra.

Athena: the tables were already there

In the Athena query editor we picked the data source AwsDataCatalog and the database arc_infra. The eight measurements were listed as tables, with Arc's columns and types. We didn't run a crawler or write a CREATE TABLE.

The Athena query editor with data source AwsDataCatalog and database arc_infra, listing eight tables (cpu, disk, diskio, mem, net, processes, swap, system) and the cpu table's columns with their types.
Arc's measurements, listed by Athena straight from Glue.

The first question we asked was the obvious one for a year of server metrics: what was the worst moment? Sorting a year of system.load1 for one host took under a second and found it. On June 30, 2026, at 21:42 UTC, prod-2's load average hit 423.5 on a 56-core machine.

A second query, joining two of Arc's measurements, showed what happened around it. Memory climbed to 95% in that hour, the load followed, and both were back to normal within two hours.

An Athena query joining Arc's system and mem tables for prod-2 between 18:00 and 01:00 UTC around June 30, 2026: load 423.5 and memory 95.3% in the 21:00 hour; completed in 1.2 seconds with 74.96 KB scanned.
The incident, hour by hour: 1.2 seconds, 75 KB scanned.

Look at the scanned bytes. Sorting the whole year scanned 5.85 MB; the seven-hour window scanned 75 KB. Arc's Iceberg metadata records the time range of every file, and Athena used it to skip every file outside the filter. Nothing had to be partitioned or tuned on the AWS side for that. It comes with the table Arc publishes.

Redshift: mounted, then three permission steps

Redshift Serverless mounts the Glue Data Catalog automatically. When we opened the workgroup in query editor v2, Arc's tables were under external databases → awsdatacatalog → arc_infra, before we'd run any SQL.

Redshift query editor v2: the arc-blog Serverless workgroup with external databases, awsdatacatalog, arc_infra and its eight tables.
Arc's Glue database, mounted by Redshift Serverless on its own.

Getting a query to run took three steps, none of them about Arc:

  • Query editor v2 doesn't work for the root user. It says it can't retrieve user information. Sign in as an IAM user or role.
  • The account needs configuring the first time anyone uses query editor v2. That's one screen, and the defaults are fine.
  • A federated user needs a grant on the mounted catalog. Our first query failed with permission denied for database awsdatacatalog until an admin ran GRANT USAGE ON DATABASE awsdatacatalog TO "IAM:<user>".

After that it's ordinary Redshift SQL with three-part names, awsdatacatalog.arc_infra.disk, and "time" in double quotes. A year of root-disk usage by week shows the pattern every operator knows. prod-2's disk grows steadily, gets cleaned, and grows again, peaking at about 55% in June, the month of the incident.

A line chart in Redshift query editor v2 of prod-2's weekly root-disk usage from November 2025 to November 2026: it climbs from about 24% to 43%, drops, climbs to about 55% in June 2026, drops sharply, and repeats.
A year of prod-2's root disk, by week, read from Arc's files.

If you'd rather use short names, or you run a provisioned cluster, CREATE EXTERNAL SCHEMA … FROM DATA CATALOG with an IAM role works too. We tested it with the same results. The guide has both.

How fresh is it?

Neither engine has anything to refresh. Arc publishes a new version on each export pass that finds changed files, moves the Glue pointer within seconds, and the next query in Athena or Redshift reads it. In our earlier Glue tests, Athena returned new rows on the first query after Arc published them. New measurements show up as new tables.

And now DuckDB in Athena

The Athena queries above ran on Athena engine version 3. The DuckDB engine announced on December 1 reads Iceberg tables from the Glue Data Catalog, which is what Arc publishes. The same day we imported the same year of metrics into a fresh 27.01.1 build of Arc and pointed a DuckDB workgroup at its Glue database. Arc needed no change for it.

We counted every row of all eight tables through the DuckDB engine, and the totals matched what we imported. The two Athena queries, the year sort and the incident join, ran unchanged and gave the same answers, except for one last digit. The year's second-highest load, 158.35, comes back as 158.3 from Athena's DuckDB engine, which reports DuckDB 2.0, and as 158.4 from engine version 3 and from Arc, on DuckDB 1.5.6. Both engines scanned about 5.8 MB for the year and about 80 KB for the incident window. Over four runs each, the DuckDB engine took about two seconds per query and engine version 3 took 0.9 to 2.3 seconds. At this size, DuckDB was no faster.

The difference is the SQL. Arc's SQL is DuckDB's, so a query written for Arc can use DuckDB syntax: time_bucket, GROUP BY ALL, and an ASOF JOIN that matches each load reading to the latest memory reading at or before it. This one covers the incident window through the end of the 01:00 hour.

SELECT time_bucket(INTERVAL '1 hour', s.time) AS hour,
       round(max(s.load1), 1)        AS load1,
       round(max(m.used_percent), 1) AS mem_pct
FROM system s
ASOF JOIN mem m ON m.host = s.host AND s.time >= m.time
WHERE s.host = 'prod-2'
  AND s.time >= '2026-06-30 18:00:00'
  AND s.time <  '2026-07-01 02:00:00'
GROUP BY ALL
ORDER BY hour;

Engine version 3 rejects it at ASOF, and the console now offers a Run on DuckDB (Preview) button next to the error. The DuckDB engine ran it in about two seconds over four runs, and the same text sent to Arc's query API returned the same eight rows. This query, written for Arc, ran in Athena unchanged. In both, the database is set by context (infra in Arc, arc_infra in Athena), so the table names are the same. It scanned 8.45 MB rather than the 80 KB of the incident join: the time filter is on system only, so the ASOF JOIN reads all of mem.

The Athena query editor in us-east-2 with workgroup arc-v3 on Athena engine version 3 and database arc_infra, running the same time_bucket and ASOF JOIN query: it fails with line 5:1 mismatched input 'ASOF', and the console offers Use migration agent and Run on DuckDB (Preview) buttons.
The same query on engine version 3: a syntax error at ASOF.
The Athena query editor in us-east-2 with workgroup arc-duckdb and database arc_infra, running the time_bucket and ASOF JOIN query on Arc's system and mem tables: completed on engine DuckDB (Preview) in 1.671 seconds with 8.45 MB scanned, returning eight hourly rows with load 423.5 and memory 95.3% in the 21:00 hour.
The same incident in DuckDB SQL, on Athena's DuckDB engine.

This doesn't test DuckDB Scales, the part of the announcement that spreads one query across many machines. Our year of metrics is under a gigabyte of Parquet, and testing Scales needs a far bigger table. It's also a preview, so what we saw on December 1 may change before it's generally available.

What to watch for

  • Keep every engine read-only on Arc's bucket. Glue accepts writes. A DROP TABLE … PURGE, a VACUUM or an orphan-file cleanup through it deletes the files the table names, and those are Arc's files.
  • Real data is messy. Thirty of our roughly one million CPU readings had nonsense values, so filter usage_idle BETWEEN 0 AND 100 before averaging. That's the data, not the engines. But it's why we keep everything as it was written and query it later, rather than cleaning it on the way in.
  • Cold tier. On Arc Enterprise, files that move to a cold tier leave the bucket, and neither engine can follow them yet. The fix is in progress.

Four platforms, no connector

Databricks, Power BI, Snowflake, and now Athena, on both of its engines, and Redshift. Every one of them read the same thing, the Parquet files Arc wrote, through open protocols they already spoke: Iceberg for the tables, and Glue or Arc's own REST catalog to find them. We didn't write a connector for any of them.

Next week we leave the big clouds: Trino, reading Arc's own catalog with no vendor in between.

Arc 27.01.1 ships in early January. The step-by-step guide for both engines, with every screen, the IAM policies and the errors you'll meet, is in the docs: Amazon Athena and Redshift.

If something doesn't read the way it should, open an issue.

Ready to handle billion-record workloads?

Deploy Arc in minutes. Own your data in open files on your storage. Use for analytics, observability, AI, IoT, or data warehousing.

Get Started ->