Skip to content

feat(duckfleet): execute generated reads through HTTP and Arrow (#1130) - #1139

Merged
athvin merged 4 commits into
mainfrom
issue/1130-duckfleet-reads
Nov 21, 2026
Merged

athvin merged 4 commits into
mainfrom
issue/1130-duckfleet-reads

Conversation

@athvin

@athvin athvin commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Closes #1130

🚧 Claimed by an agent session — 2026-11-21T01:52:48.773942+00:00, session 01a1fb62-5950-78d2-982c-5ecb2cd40d30 on brians-MacBook-Pro.local.
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

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 check passed on f30748c459d5a12283bac66f5b7e4b7a2bcafd94, including all 17 DuckFleet tests and the unchanged internal/public OpenAPI snapshots. make check-e2e passed 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-5ecb2cd40d30 on brians-MacBook-Pro.local · 2026-11-21T04:24:43Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  1. Extend the query emitter in er-sql-check/src/emit.rs with a backend-independent Arrow read path, using a small generated execution contract from er-entity-gen. Preserve existing DuckDB function signatures and regenerate all artifacts through er-entity gen.
  2. Add a bounded HTTP/Arrow session client to 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.
  3. Prove the existing generated golden-record page query against embedded and disposable remote execution: values, Arrow types/nulls, snapshot pins, temporary state, transaction lifetime, cancellation and cleanup. Resolve the measured float parameter round-trip defect before claiming numeric transport parity; link any necessary upstream implementation.
  4. Add the smallest operator-selected server read slice without changing the customer response contract or enabling customer datasets. Retain existing embedded behavior and fail closed when a configured remote binding is missing/stale.
  5. Run focused negative/lifecycle tests, the real service-backed parity harness, generated-artifact verification and 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 a4cb6025 immediately 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 main 9e318ce6 subsequently passed full local make check and main Rust CI 44858367018. Subsequent preflight/mutation sequences use set -euo pipefail or 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

  • 17 DuckFleet library tests passed in the full repository gate, including refused redirects, bounded responses, malformed Arrow, transport loss without replay, cancellation and cleanup.
  • The Rust/Compose proof ran against the merged upstream source: both fixtures pinned snapshot 2, preserved values/types/nulls and the exact double bits, observed later-snapshot changes, and finished with zero open worker sessions. Temporary containers and volumes were removed.
  • This is one generated-read slice. It does not claim the full resolution pipeline, cloud isolation qualification, engine-version equivalence or production adoption. Those remain the epic’s subsequent tickets.

Files

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.

Fix the paused marketing audit visibility and configuration-lock race DuckFleet: execute generated dataset reads through HTTP and Arrow

2 participants