Skip to content

Fix: Prevent snapshots with shared versions in dev environments from expanding restatement intervals for prod snapshots#5025

Merged
izeigerman merged 1 commit intomainfrom
fix-restate-intervals-snapshot-shared-version
Jul 25, 2025
Merged

Fix: Prevent snapshots with shared versions in dev environments from expanding restatement intervals for prod snapshots#5025
izeigerman merged 1 commit intomainfrom
fix-restate-intervals-snapshot-shared-version

Conversation

@izeigerman
Copy link
Collaborator

@izeigerman izeigerman commented Jul 25, 2025

Example scenario:

  1. The kind of a model changed from INCREMENTAL_UNMANAGED to INCREMENTAL_BY_TIME_RANGE while the physical version remained the same
  2. The kind change is deployed to prod. At the same time a snapshot of this model with the old kind is still promoted in one or more dev environments
  3. The model snapshot with the new kind is restated in prod
  4. Because there's an old snapshot with previous kind deployed to some dev environment, the original restatement interval gets expanded and applied to the shared physical version
  5. The user ends up restating full history instead of just the specified interval

…expanding restatement intervals for prod snapshots
@izeigerman izeigerman merged commit ddf0492 into main Jul 25, 2025
27 checks passed
@izeigerman izeigerman deleted the fix-restate-intervals-snapshot-shared-version branch July 25, 2025 16:40
izeigerman added a commit that referenced this pull request Jul 28, 2025
…expanding restatement intervals for prod snapshots (#5025)
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