-
Notifications
You must be signed in to change notification settings - Fork 243
Feat!: print auto-restatement triggers in debug console #4980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
828ab26
to
1230edb
Compare
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
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_day
items
is its own triggerorder_items
is its own triggerwaiter_revenue_by_day
is its own triggertop_waiters
is downstream of of all three, but its immediate parent iswaiter_revenue_by_day
items
andorder_items
as immediate parents so are triggered by bothOutput other than triggers (e.g.,
batch=0 | duration=1s
) omitted for brevity