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 local changes when restating #2823

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

izeigerman
Copy link
Member

@izeigerman izeigerman commented Jun 26, 2024

Before this change the sqlmesh plan command with the --restate-model argument(s) would fail if the state of the target environment is different from the local state.

This is really annoying to users since it essentially requires their local code repo to always be in sync with the target environment which may sometimes be outside of their control. This can happen when, for example, prod hasn't caught up with the main branch yet.

This update ensures that the local changes are ignored instead if a plan contains restatements.

@izeigerman izeigerman requested a review from a team June 26, 2024 03:35
@izeigerman izeigerman merged commit 4bde314 into main Jun 26, 2024
15 checks passed
@izeigerman izeigerman deleted the fix-ignore-changes-when-restating branch June 26, 2024 17:27
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