Skip to content

Conversation

@VaggelisD
Copy link
Contributor

Follow up PR on model freshness (Previous PR)

This PR enables mixed SQLMesh & external (source) model freshness, e.g:

A: External model 
B: SELECT * FROM A
C: SELECT * FROM A, B

Model C will be evaluated if its upstream models are fresh, which is determined by:

  • C's last_altered_ts compared to external model's (A) INFORMATION_SCHEMA metadata
  • The existence (or not) of parent intervals for SQLMesh models (B), signalling if any model will be evaluated as part of this run

A new freshness-specific test file is added to break up the original test in various scenarios.

@VaggelisD VaggelisD force-pushed the vaggelisd/mixed_model_freshness branch from 46715f5 to 9a8af2e Compare October 13, 2025 10:50
@VaggelisD VaggelisD force-pushed the vaggelisd/mixed_model_freshness branch from 9a8af2e to d4e3fbe Compare October 20, 2025 10:23
@VaggelisD VaggelisD force-pushed the vaggelisd/mixed_model_freshness branch from 33101a2 to 82c3671 Compare October 21, 2025 09:18
@VaggelisD VaggelisD force-pushed the vaggelisd/mixed_model_freshness branch from 82c3671 to 126a902 Compare October 21, 2025 11:38
@VaggelisD VaggelisD merged commit a98b5c4 into main Oct 22, 2025
36 checks passed
@VaggelisD VaggelisD deleted the vaggelisd/mixed_model_freshness branch October 22, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants