Feat!: print auto-restatement triggers in debug console#4980
Merged
Conversation
828ab26 to
1230edb
Compare
Collaborator
|
Nice, I think this will help a lot with debugging "why do I have a heap of changed models, I didnt change anything"-type questions |
1230edb to
37f6fa4
Compare
a01cb9f to
22c272c
Compare
erindru
reviewed
Aug 6, 2025
d385595 to
0ecfb43
Compare
erindru
approved these changes
Aug 6, 2025
0ecfb43 to
e8127db
Compare
izeigerman
reviewed
Aug 11, 2025
izeigerman
reviewed
Aug 11, 2025
izeigerman
reviewed
Aug 11, 2025
e8127db to
9c44a32
Compare
4eb6586 to
f7e3c69
Compare
izeigerman
approved these changes
Aug 19, 2025
f7e3c69 to
e0b56b9
Compare
e0b56b9 to
a8fb199
Compare
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.
During a
run, models are usually evaluated because their cron has elapsed. However, any model that is auto-restated will cause all its children to be evaluated as well.Currently, SQLMesh does not indicate whether being downstream of an auto-restatement caused a model to be evaluated. This PR adds that information to the debug console.
Example
items,order_items, andwaiter_revenue_by_dayitemsis its own triggerorder_itemsis its own triggerwaiter_revenue_by_dayis its own triggertop_waitersis downstream of of all three, but its immediate parent iswaiter_revenue_by_dayitemsandorder_itemsas immediate parents so are triggered by bothOutput other than triggers (e.g.,
batch=0 | duration=1s) omitted for brevity