You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -168,10 +169,7 @@ Line 5 describes what environments the plan will affect when applied - a new `pr
168
169
169
170
Lines 7-11 of the output show that SQLMesh detected three new models relative to the current empty environment.
170
171
171
-
Lines 12-15 list each model that will be executed by the plan, along with the date intervals that will be run. Note that `full_model` and `incremental_model` both show `2020-01-01` as their start date because:
172
-
173
-
1. The incremental model specifies that date in the `start` property of its `MODEL` statement and
174
-
2. The full model depends on the incremental model.
172
+
Lines 13-16 list each model that will be executed by the plan, along with the date intervals or refresh types. Note that for incremental_model the date range [2020-01-01 - 2025-04-15] is shown, while for full_model and seed_model it indicates [full refresh]. The incremental model starts from 2020-01-01 because that date is specified in the start property of its MODEL statement, and the full model requires a full refresh because it depends on the incremental model.
175
173
176
174
The `seed_model` date range begins on the same day the plan was made because `SEED` models have no temporality associated with them other than whether they have been modified since the previous SQLMesh plan.
177
175
@@ -254,20 +252,24 @@ Line 16 asks you whether to proceed with executing the model backfills described
Line 6 of the output shows that SQLMesh applied the change and evaluated `sqlmesh_example__dev.incremental_model`.
389
+
Lines 6-9 show the progress of updating the physical layer. Line 8 shows that SQLMesh applied the change and evaluated sqlmesh_example__dev.incremental_model for the date range from 2020-01-01 to 2025-04-15. Lines 11-14 show the execution of model batches, and lines 17-20 show the update of the virtual layer.
383
390
384
391
SQLMesh did not need to backfill anything for the `full_model` since the change was `Non-breaking`.
Note that a backfill was not necessary and only a Virtual Update occurred.
478
+
Note that a backfill was not necessary and only a Virtual Update occurred, as indicated by the "SKIP: No physical layer updates to perform" and "SKIP: No model batches to execute" messages. This is because the changes were already calculated and executed in the dev environment, and SQLMesh is smart enough to recognize that it only needs to update the virtual references to the existing tables rather than recomputing everything.
467
479
468
480
### 5.2 Validate updates in prod
469
481
Double-check that the data updated in `prod` by running `sqlmesh fetchdf "select * from sqlmesh_example.incremental_model"`:
0 commit comments