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: Ignore non-restateable models and print out a warning instead of failing the plan #2605

Merged
merged 2 commits into from
May 14, 2024

Conversation

izeigerman
Copy link
Member

Previously SQLMesh would fail the plan if the restatement list contained a model which couldn't be restated.

When this behavior is combined with selectors, it results in a subpar experience, as the selector expression may encompass a large set of models, only a small portion of which cannot be restated.

This update changes the behavior so that an error is printed out for models that are part of the restatement list but cannot be restated instead failing the plan. It also completely ignores symbolic and seed models, as restating those is a no-op

@izeigerman izeigerman requested review from vchan and eakmanrq May 14, 2024 03:55
@izeigerman izeigerman merged commit c932559 into main May 14, 2024
15 checks passed
@izeigerman izeigerman deleted the fix-ignore-non-restateable-models branch May 14, 2024 17:42
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.

None yet

3 participants