Repository navigation
Conversation
…ished A microbatch first build or full refresh builds aside into a rebuild relation and swaps it in once every batch has run. When a later batch failed, the rebuild relation stayed behind for inspection. The next build found it without a live table, took it for an interrupted swap and renamed it to the live name, publishing the batches before the failure as the model. Later incremental runs then never filled the batches that were missing. A rebuild relation records nothing that says it is complete, so the next build now always drops it and starts again from the first batch. A swap interrupted on an adapter without transactional DDL costs one rebuild; the previous generation is kept.
kvlonge
enabled auto-merge
November 30, 2026 14:06
Checking the cached relation listing first keeps a full refresh with no leftover rebuild at its earlier statement count.
kvlonge
added this pull request to the merge queue
Nov 30, 2026
Any commits made after this event will not be merged.
This branch has not been deployed
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.
Why
A microbatch first build or
--full-refreshbuilds into a rebuild relation and swaps it in after the last batch. When a later batch failed, the next build found the rebuild relation with no live table and renamed it to the live name, as if a swap had been interrupted. If that build failed again, the model was left holding only the batches before the failure. The next run was then planned as incremental and refilled only its lookback window, so older missing batches stayed missing.Changes
DuckShop: no edge case added. The sequence needs a model that fails on purpose, and DuckShop's build must stay green.
Verification