Skip to content
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

Fix: Refresh snapshot intervals after determining the max interval end per model #3664

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

izeigerman
Copy link
Member

This addresses the following scenario:

  1. SQLMesh fetches snapshots and its intervals as part of the plan construction.
  2. Right after this a concurrent sqlmesh run job backfills and records intervals for a certain model.
  3. SQLMesh fetches maximum backfilled interval end for each model.

As a result, the intervals fetched in (3) are ahead of what's been fetched in (1), leading to inaccurate missing intervals.

@izeigerman izeigerman requested a review from tobymao January 20, 2025 00:47
@izeigerman izeigerman merged commit e19b984 into main Jan 20, 2025
21 checks passed
@izeigerman izeigerman deleted the fix-refresh-intervals-after-max-interval-end branch January 20, 2025 03:10
izeigerman added a commit that referenced this pull request Jan 20, 2025
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.

2 participants