Repository navigation
Conversation
mday-io
force-pushed
the
mday/preserve-unselected-external-hashes
branch
from
September 25, 2026 21:26
32bb25f to
6731332
Compare
Signed-off-by: mday-io <mdaytn@gmail.com>
mday-io
force-pushed
the
mday/preserve-unselected-external-hashes
branch
from
October 31, 2026 17:00
6731332 to
aeb4097
Compare
mday-io
marked this pull request as ready for review
October 31, 2026 17:01
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.
Description
Why
Schema refresh during a selected plan can recompute cached fingerprints for an unselected external co-parent sourced from deployed state. When the persisted fingerprint differs from a fresh calculation, the plan can report external and downstream changes outside the selection.
How
Preserve the deployed data and metadata hashes for unselected external models in the schema-update DAG when their serialized definitions remain unchanged. Selected external edits, selected dependency schema changes and non-external models keep the existing behavior.
The regression deliberately injects inconsistent persisted data and metadata hashes. It proves this preservation invariant; it does not claim that a normal SQLMesh migration creates the mismatches.
Test Plan
make stylepassed all four hooks.make fast-testpassed all six phases: 2,947 passed and 13 skipped, with four workers.Checklist
make styleand fixed any issuesmake fast-test)git commit -s) per the DCOSummary by CodeRabbit