Repository navigation
feat(duckfleet): execute generated reads through HTTP and Arrow (#1130) - #1139
Merged
Merged
Conversation
6 tasks done
athvin
marked this pull request as ready for review
November 21, 2026 02:52
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1130
What
Add generated HTTP/Arrow golden-record reads with an owned session, cancellation and explicit cleanup. The existing embedded path and customer response shape remain compatible; an operator-only switch selects the pilot backend after dataset authorization.
Why
Prove one snapshot-pinned customer read through both engines before expanding remote execution. Missing or revoked dataset bindings, session loss and uncertain outcomes fail closed without replay or local fallback.
Proof
The disposable Rust/Compose parity harness passed generated snapshot reads, typed/null values, exact double bits, temporary-state/rollback affinity, SQL-error recovery and cancellation. The worker reported zero open sessions after explicit close.
make checkpassed onf30748c459d5a12283bac66f5b7e4b7a2bcafd94, including all 17 DuckFleet tests and the unchanged internal/public OpenAPI snapshots.make check-e2epassed against an isolated Postgres and disposable DuckLakes; its Postgres container and volumes were removed. All PR workflows passed on that same commit.Risk & rollback
The pilot is off by default; dev runtime settings were verified unset. Production projected secret-key verification is deferred to #1134 because the read-only role cannot query prod EKS. Engine/catalog production qualification remains #1134. Disable both pilot variables to restore embedded reads; revert this PR if the default path regresses. Upstream float precision fix: athvin/duck-fleet#117, merged as
398ff60c7abe973514707be3e47248a610560ec9.Post-merge ledger
Closed by: Codex · session
01a1fb62-5950-78d2-982c-5ecb2cd40d30onbrians-MacBook-Pro.local· 2026-11-21T04:24:43Zmainis green with this change on it — original DuckFleet merge9e318ce6passed backend CI 44858367018 and full localmake checkon the combined merged tree. Its marketing failure was repaired by follow-up fix(marketing): stabilize the paused audit configuration lock (#1146) #1147, merge89d14ca9; main frontend 44863454746 executed and passed the audit in all three browser projects, and main Rust 44863454645 passed. Current main7426991feee54746809266a75dfa867800e8ac79contains both merges; its recent workflows are successful. No new main failure observed from 2026-11-21T03:54:27Z through 2026-11-21T04:24:43Z, completing the 30-minute watch.images— run 44858366915 succeeded for merge9e318ce653b74eb7060ef88fbb0314a5b777ac26; er-api digestsha256:d2f986f4e38b3101a01f7490e95b4b77a44e7727991f8c38abba92e8b3c3c307. Deploy verified unchanged frontend before reusing its image.deploy— 44858848413 succeeded for the merge SHA. Devweb-api-blue-65d8cdf448-mcx6gemitteder-server listeningat 03:01:42.757707Z; prodweb-api-green-5fdd4fc6f8-n62g4emitted the same at 03:01:14.812150Z (CloudWatch query4b3fe9a5-17de-4bf2-be22-d64f90db8159). Both preview readiness probes returned 200; traffic verified dev blue at 03:02:07Z and prod green at 03:05:30Z, 2026-11-21..claude/skills/ducklake-lakehouse/references/duckfleet-reads.mdand its committed evidence JSON record the generated read contract, numeric fix, session lifecycle, parity and limits. The Context block records the handler-local OpenAPI extraction requirement and merge preflight error; Fix the paused marketing audit visibility and configuration-lock race #1146 documents the independently fixed audit observer race.Specific to this change
Follow-up fix(marketing): stabilize the paused audit configuration lock (#1146) #1147 verified — merge
89d14ca9fixes the stale visibility entry with a deterministic regression. Main frontend 44863454746 passed all browser projects; deployment 44863604441 and the full post-merge watch completed. Its ledger is closed.Verify pilot variables — dev explicit environment and projected secret key names contain no
ER_DUCKFLEET_settings. Production secret-key verification deferred — DuckFleet: qualify the full API workflow and decide production rollout #1134 (handoff); read-only prod EKS returns Unauthorized. This PR enrolls no datasets or changes deployment secrets.Upstream float fix — Preserve exact double parameters in JSON query decoding duck-fleet#117 merged as
398ff60c7abe973514707be3e47248a610560ec9; Docker/Kubernetes run 44855116156 and infra 44855116081 passed. AWS 44855116072 passed protocol/dbt checks before its pre-existing missing scale-project failure, also present on baseline run 44850206789. Its 30-minute watch and PR ledger completed before this merge.Context — plan, discoveries, measurements, files
Plan
er-sql-check/src/emit.rswith a backend-independent Arrow read path, using a small generated execution contract fromer-entity-gen. Preserve existing DuckDB function signatures and regenerate all artifacts througher-entity gen.er-duckfleet, using the dataset binding resolver. Represent typed parameters, session affinity, cancellation, explicit close and failure classification; refuse redirects and silent session replacement, and keep credentials/bind values out of telemetry.make check; record evidence and limitations. Land the PR, verify main/deploy and close its ledger before DuckFleet: make ingestion and result artifacts accessible to remote workers #1131.Discoveries
Main advanced through CI-only merge-bus removal
a4cb6025immediately before merge. A shell sequence failed to stop after the base assertion failed, so the merge proceeded; this was an execution error. The resulting combined main9e318ce6subsequently passed full localmake checkand main Rust CI 44858367018. Subsequent preflight/mutation sequences useset -euo pipefailor separate checked calls.DuckFleet JSON decoding changed a finite double by one bit before SQL. Upstream feat: protect enforcement — protected record wins the merge-plan master (1.3b) #116 / PR feat(reconcile): protected records are never cut by never-rules (1.3c) #117 fixes the parser; its unit regression was observed failing first. Merged pin:
398ff60c7abe973514707be3e47248a610560ec9. Its Docker/Kubernetes and infrastructure checks passed; AWS reached protocol/dbt success before the same missing scale-project file seen on its base commit.GET OpenAPI extraction inspects the handler body. The shared page builder therefore leaves the real Arrow response constructor in a handler-local closure, still executed in the bounded read pool. All 16 OpenAPI tests passed with both committed documents unchanged.
Measurements
Files