Skip to content

feat(api): Parquet export format (#1241) - #1251

Merged
athvin merged 6 commits into
mainfrom
issue/1241-export-parquet
Nov 26, 2026
Merged

athvin merged 6 commits into
mainfrom
issue/1241-export-parquet

Conversation

@athvin

@athvin athvin commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Closes #1241

🚧 Claimed by an agent session — 2026-11-26T04:17:27Z, session Claude Code:c01fa93f-cb56-4a01-83ec-8ea76e9aa92b on brians-MacBook-Pro.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Adds format: parquet for golden-record and lineage exports. The file is Snappy-compressed Parquet with the same columns as the CSV. Duplicates remain JSON Lines only and get a 422; that is deferred to #1252.

Why

#1241, the last open ticket under E11 #521. Parquet is the format a warehouse load wants.

Proof

  • make check green: 1,199 tests passed, 0 failed.
  • export_write e2e (DEDUPE_E2E_DUCKLAKE=1), new case 7:
    • golden Parquet at R round-trips with exactly AcctGoldenRecord::arrow_schema()'s columns and the same four ids as the JSONL export, across a page boundary;
    • an empty export is a readable zero-row file that keeps the schema;
    • lineage Parquet matches the CSV's seven rows.
  • Mutation: bypassing the Parquet lineage arm turns the e2e red.
  • The OpenAPI file-envelope test now iterates ExportFormat::ALL, so an undocumented format fails it.
  • Dependency cost: three crates added (parquet, seq-macro, snap), all pure Rust. parquet is pinned =60.1.0 to duckdb's arrow, with only the arrow and snap features (none of brotli, zstd, lz4 or flate2), so arrow stays at 60.1.0.

Risk & rollback

Additive: one new enum value, and the existing formats are untouched. Rollback is git revert of the merge.

Post-merge ledger

Closed by: agent · session Claude Code:c01fa93f-cb56-4a01-83ec-8ea76e9aa92b on brians-MacBook-Pro · 2026-11-26T05:27:51Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: b7af67f2. Every workflow on that SHA succeeded: rust 45760021286, frontend 45760021354, images 45760021390, infra 45760021296, devcontainer, marketing preview, and deploy 45760993786.
  • images built, or correctly never ran because nothing that goes into
    an image changed: images 45760021390 succeeded, giving er-api@sha256:faab5362….
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion:
    - dev ci/web-api-green-685b5c7955-xcv9p logged er-server listening at 05:22:04Z;
    - prod app/web-api-blue-767fc5678b-cqj6m logged it at 05:21:56Z;
    - both are the active colour and run faab5362….
    The prod API launch gate said "compatible with the deployed contract" and published b7af67f2.
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: deploy 45760993786 is green for dev and prod. Drift and kind are n/a: neither runs on a merge, and this PR touches neither.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: E11.3b — Parquet export format #1241 is CLOSED, its closer is PullRequest, and the card is on Done. Epic E11 — Public resolution results, lineage and bulk export #521 was then closed with every acceptance box ticked.
  • follow-ups are open for everything deferred here — numbers: deferred — E11.3c — Parquet export for duplicate groups #1252 (Parquet for duplicate groups).
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: two things.
    - parquet must move in step with the workspace arrow: there is one advisory per minor line, so it is pinned = like kube. This is recorded in project memory.
    - The ff-analysis.md generated reference quotes the arrow version, so any arrow bump regenerates it.

Specific to this change

  • image size delta of er-api, from ECR (the dependency-cost note the ticket asks for): it went from 172,364,215 bytes (c6672637) to 173,391,306 bytes (b7af67f2), +1,027,091 bytes compressed, about +0.6%.
Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

bmoore813 and others added 3 commits November 25, 2026 20:25
format: parquet writes a Snappy-compressed Parquet file with the columns the
CSV carries: golden records with the entity's declared Arrow schema (an empty
export is still a readable file with that schema) and lineage's four columns.
Duplicates stay JSON Lines only: a group's nested shape has no schema fixed
before its first page. parquet is pinned =60.1.0 to the arrow duckdb uses, with
only the arrow and snap features (pure Rust, no C compression libraries).

The file envelope documents application/vnd.apache.parquet, and its test now
requires every ExportFormat's media type to be documented.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

bmoore813 and others added 2 commits November 25, 2026 20:58
parquet 60.1.0 writes bloom filters in plaintext into an encrypted file. This
build compiles no encryption feature, so it was never exposed, but the patched
release is a minor bump within duckdb's arrow ^60, so the workspace's arrow
moves 60.1.0 -> 60.2.0 with it rather than carrying an advisory ignore.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit b7af67f into main Nov 26, 2026
45 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 26, 2026 05:12 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 403c21c2 Deployed Nov 26, 2026 by athvin via remove closed PR previews #64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E11.3b — Parquet export format

2 participants