Skip to content

build(duckdb): move the engine to DuckDB 2.0.1 (#1168) - #1171

Merged
athvin merged 2 commits into
mainfrom
issue/1168-duckdb-2-0-1
Nov 23, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/1168-duckdb-2-0-1

Conversation

@athvin

@athvin athvin commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Closes #1168

🚧 Claimed by an agent session — 2026-11-23T14:04:45Z, session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac.
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

Moves ER's bundled engine from DuckDB 2.0.0 (duckdb =1.20000.1) to 2.0.1 (=1.20001.0).

  • arrow stays 60.
  • The release label in rust/.cargo/config.toml becomes v2.0.1 / patch 1.
  • The generated crate-map.md pin is regenerated.

Why

#1128's DuckFleet adoption condition is the same released engine on both sides. DuckFleet moved to 2.0.1 in athvin/duck-fleet#150. This is step 1 of #1134's replan.

Proof

  • make check: exit 0. 1130 passed / 0 failed, including 98 golden tests unchanged and the_engine_reports_a_released_version on v2.0.1.
  • make check-e2e (DuckLake + Postgres): exit 0. 473 passed / 0 failed / 3 ignored.
  • Extensions: all seven BAKED_EXTENSIONS return 200 at extensions.duckdb.org/v2.0.1/ for linux_amd64, linux_arm64 and osx_arm64. The image bake is proven on merge by images.

Risk & rollback

  • Patch release. The DuckLake catalog stays 1.0 (no AUTOMATIC_MIGRATION), so lakes written by 2.0.0 remain readable.
  • The image's extension directory moves to v2.0.1/, and the bake rebuilds it.
  • Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-23T16:30:47Z

  • 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: dba8b69f. rust 45211599196, frontend 45211599271, infra 45211599466 and devcontainer 45211599195 are all success.
  • images built, or correctly never ran because nothing that goes into
    an image changed: images 45211599404 success. er-api rebuilt with the v2.0.1 extension bake.
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: verified 2026-11-23 after SSO refresh: dev ci/web-api-green-55b8644b5d-kh675 and prod app/web-api-blue-84f48dd5cb-g7jv9 both run er-api@sha256:b6ed9097…, ECR-tagged 802127db, and their er-server container emitted "message":"er-server listening","addr":"0.0.0.0:8000" (dev 21:50:56Z, prod 19:36:00Z). The dispatcher in both runs the same digest. 802127db contains this merge (git merge-base --is-ancestor). Earlier evidence: deploy 45215985434 has DEPLOY_SHA dba8b69f, the new colour's process answered er-api-preview /readyz -> 200 in both ci (dev) and app (prod) before cutover, and traffic is verified on the new colour. A pod log line could not be read because the local SSO token expired (Token has expired and refresh failed).
  • 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 is green. drift and kind were already red on 03792063 (2026-11-22 and 2026-11-23, before this merge), the known kind-probe red. Not this change.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: DuckFleet: move ER to DuckDB 2.0.1 for engine parity #1168 CLOSED by PullRequest, and the card is Done.
  • follow-ups are open for everything deferred here — numbers: DuckFleet: requalify compatibility, reads and tasks against DuckFleet 2.0.1 #1169 (requalify DuckFleet harnesses on 2.0.1) is next in DuckFleet: qualify the full API workflow and decide production rollout #1134's replan.
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: rust/.cargo/config.toml now records that the 2.0.1 tarball is pre-stamped, so the override is redundant but must agree with the pin.

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • Pin duckdb =1.20001.0 (libduckdb-sys follows). arrow stays 60, the same major duckdb-rs 1.20001.0 pulls.
  • Release label in rust/.cargo/config.toml → v2.0.1 / patch 1.
  • Regenerate crate-map.md, which quotes the pin.
  • make check, which covers the_engine_reports_a_released_version, the extension tests and the goldens.
  • make check-e2e (DuckLake + Postgres).
  • Image bake: CI images on merge, and the deploy verified (/readyz 200 from the new process; a log line is blocked by the expired SSO token).

Discoveries

  • duckdb-rs 1.20000.1 → 1.20001.0 has no API churn ER touches. build_bundled_cc.rs only refactors the autoregister helper and adds an opt-in bundled-icu feature, which ER doesn't enable.
  • The 2.0.1 vendored pragma_version.cpp is already stamped v2.0.1 / 8d78114e90, so the CXXFLAGS override is now redundant. It's kept, set to agree with the pin.
  • All seven BAKED_EXTENSIONS return 200 at extensions.duckdb.org/v2.0.1/{linux_amd64,linux_arm64,osx_arm64}/.
  • DuckFleet 778dbe02 runs the same engine: =1.20001.0, DuckLake catalog 1.0.

Measurements

Files

@athvin
athvin marked this pull request as ready for review November 23, 2026 14:25
bmoore813 and others added 2 commits November 23, 2026 07:25
DuckFleet now runs DuckDB 2.0.1 (athvin/duck-fleet#150). #1128's adoption
condition is the same released engine on both sides, so ER moves from
2.0.0 (=1.20000.1) to 2.0.1 (=1.20001.0).

- arrow stays 60; duckdb-rs 1.20001.0 pulls the same major.
- Release label in .cargo/config.toml moves to v2.0.1, patch 1. The
  2.0.1 vendored pragma_version.cpp is already stamped, so the override
  now agrees with the source rather than correcting it.
- All seven baked extensions exist at extensions.duckdb.org/v2.0.1 for
  linux_amd64, linux_arm64 and osx_arm64.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin force-pushed the issue/1168-duckdb-2-0-1 branch from 869cccd to cfff40d Compare November 23, 2026 15:25
@athvin
athvin merged commit dba8b69 into main Nov 23, 2026
43 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 23, 2026 16:00 — with GitHub Actions Inactive
athvin added a commit that referenced this pull request Nov 29, 2026
…r, with an independent Splink twin (#1206) (#1421)

GOLDENS MOVED, and why. The 50k scale golden had failed every night
since DuckDB 2.0.1 (#1171). Bisected: it passes at 964f14b and fails at
dba8b69 with CI's exact numbers. All 32 drifted predictions pair
'xolomiès' with 'colomiès' and move by 1.3022 bits, which is the
surname's jaro_winkler >=0.92 vs >=0.88 gap. DuckDB 2.0 counts Unicode
characters where 1.x counted bytes (0.926 -> 0.917). The new value is
correct, and the EM m drift follows from the same pairs.

The old oracle was Splink 5.0.0 on DuckDB 1.5.5. Python has no DuckDB 2.x,
so it cannot be regenerated on the new engine. Instead:

- fixtures/golden/gen_historical_50k_golden.py is the generator,
  reconstructed and verified: it reproduces the committed Splink golden
  exactly (prior, every m/u, every prediction to 1e-8, every cluster).
  That needs EM with term frequencies off.
- historical_50k_ascii is its --ascii output: every text column folded
  to ASCII, where bytes and characters coincide. dedupe-core on DuckDB
  2.0.1 matches it exactly. That proves Unicode handling is the ONLY
  divergence from Splink.
- historical_50k is re-baselined from this engine by an #[ignore]
  regenerate test, so it keeps guarding the 237 non-ASCII rows. Its
  MANIFEST records the provenance. The final clustering is unchanged:
  0 of 50,578 cluster assignments differ from the Splink oracle.

The test is parameterised over the two cases; all four pass.
er-matching's goldens reference records the episode.

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — cfff40d4 Deployed Nov 23, 2026 by athvin via remove closed PR previews #10
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.

DuckFleet: move ER to DuckDB 2.0.1 for engine parity

2 participants