[04] DuckDB read layer + Parquet publish for /v3 - #22
Open
chondl wants to merge 7 commits into
Open
Conversation
Content-address each table object under the v2/ prefix the reference-aware
GC already scans (v2/parquet/{year}/{table}.parquet.{digest}, immutable) and
record it in manifest.blobs under a parquet/ logical key. The manifest is
written last, so a reader resolving the set through it never joins tables from
different runs. Content-gate against the manifest digest keeps steady-state
uploads at zero.
The DuckDB read layer resolves the whole set from one manifest fetch per sync,
materializes the referenced objects into a per-generation cache dir (reusing
unchanged objects by hardlink), and swaps the active dir atomically; each query
captures the base dir once so it never spans two generations.
…ad failure A3: the current-year cycle now writes the manifest exactly once, last, carrying both site-blob and parquet entries, so DuckDB and the frontend never disagree by a cycle and a crash between two writes cannot strand the API. A1: parquet no longer does read-modify-write with 'read_manifest() or Manifest()' on the hot path; the historical standalone writer aborts (logs + skips) when the manifest is unreadable instead of fabricating an empty one that erases every site-blob ref.
A2: _teams_source falls back to a glob (which _query turns into an empty result) instead of crashing on max([]), so /v3/team and /v3/teams return empty rather than 500 on a first db-less deploy before the first pipeline cycle.
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.
Replacement for #10 (auto-closed by branch rename). Part of the cph-staging series.