Skip to content

DuckFleet: execute generated dataset reads through HTTP and Arrow #1130

Closed

Description

@athvin

Parent: #1127

Sequence: 3 of 7 within this initiative. Depends on: #1128

Planning: unscheduled backlog; no delivery commitment or estimate until discovery/refinement. This sequence is not a product-wide stack rank; see #1008.

Customer / product need

As a customer, I need the same typed, snapshot-consistent results regardless of where SQL executes. As an operator, I need backend selection without maintaining two versions of the product's queries.

Scope

Introduce the smallest execution interface that supports an embedded backend and a DuckFleet HTTP/Arrow backend. Prove it with one existing generated, snapshot-pinned read against the disposable dataset before expanding coverage.

Acceptance criteria

  • Session open, parameter binding, typed results, errors, cancellation and explicit close are represented in the interface, with tested resource cleanup.
  • The entity generator emits the required backend-independent execution path; generated artifacts are regenerated, never hand-edited, and SQL remains governed by entities/.
  • The same generated query produces equivalent values, types, nulls and snapshot semantics through both backends.
  • Remote session affinity preserves temporary state and transaction lifetime; session loss is surfaced rather than silently opening a replacement mid-operation.
  • Existing embedded behavior and the customer response contract remain compatible; the backend is selected server-side.
  • make check and the service-backed parity harness pass, with actual integration evidence retained.

Boundaries

Use HTTP/Arrow rather than DuckFleet's limited PostgreSQL wire front. Do not port all callers in this first slice. Disposable single-dataset validation may proceed alongside isolation work; customer enablement depends on the isolation ticket.

Completion evidence

Implemented in #1139; its post-merge ledger closed at 2026-11-21T04:24:43Z after main and deployment verification. Generated-query parity, typed parameters/results, snapshots, temporary state, rollback, cancellation and explicit cleanup passed against a disposable DuckFleet service; make check and make check-e2e passed. The unchanged marketing test that failed on main was repaired separately in #1147, whose regression and deployment passed and whose ledger is also closed.

This proves one generated read slice, not full-pipeline adoption. The pilot remains opt-in; production projected secret-key verification is explicitly handed to #1134 because the read-only role cannot query prod EKS. Artifact, task, recovery and rollout work remains #1131–#1134.

Activity

  1. added
    enhancement
    on Nov 21, 2026
  2. self-assigned this
    on Nov 21, 2026
  3. athvin commented on Nov 21, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #1139 (draft), 2026-11-21T01:53Z. Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions