Repository navigation
Conversation
…y expires Signed-off-by: Ky Le <vinhkyle123@gmail.com>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
…y expires Signed-off-by: Ky Le <vinhkyle123@gmail.com>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Description
Fixes #6307.
After two forward-only changes to one parent, a metadata change to another parent could trigger a full production backfill of their child. Running the janitor between the two plans was enough to change the outcome.
SQLMesh now records whether each parent version was applied forward-only in its version history. For older history, the planner still consults the stored snapshot. If both sources are missing, it keeps the conservative rebuild decision.
Upgrade note
Run
sqlmesh migratewhen upgrading. The migration advances the state schema version so older clients cannot accidentally load the new field. It does not reconstruct history that was already deleted.Test Plan
The DuckDB regression applies two forward-only changes in dev and verifies the janitor deleted the intermediate snapshot. The production plan then retains the child's version and schedules no child backfill. The same scenario failed on upstream
3135e61.Checklist
make styleand fixed any issuesmake fast-test)git commit -s) per the DCO