Feat!: Skip model evaluation if upstream external model(s) have not changed#5277
Merged
Feat!: Skip model evaluation if upstream external model(s) have not changed#5277
Conversation
izeigerman
reviewed
Sep 2, 2025
64db71b to
f627f57
Compare
VaggelisD
commented
Sep 11, 2025
7d1e4c2 to
d50f087
Compare
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 24, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
izeigerman
reviewed
Sep 25, 2025
701000f to
1958d17
Compare
izeigerman
approved these changes
Sep 26, 2025
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.
This PR enables SQLMesh to skip re-evaluating models that depend on external model(s) which have not been updated since the last run.
This is done by:
last_altered_tsfield in the_intervalstable which tracks the last modification to the physical table of that snapshotINFORMATION_SCHEMAfor the external model's "last altered" timestamp wherever applicable (BQ & Snowflake for the time being)Edit n.1: The freshness check was refactored into a built-in signal to (1) make the feature opt-in and (2) matches conceptually and the rest of the UX is given to us "for free".