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
user@mac ~/D/sqlmesh-example [1]> sqlmesh plan -v
New environment `prod` will be created from `prod`
Summary of differences against `prod`:
Models:
└── Added:
├── staging.seed
└── staging.test5
Models needing backfill (missing dates):
├── staging.seed: 2024-08-05 - 2024-08-05
└── staging.test5: 2024-08-01 - 2024-08-04
Apply - Backfill Tables [y/n]: y
staging.seed created
staging.test5 created
Creating physical table ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 2/2 • 0:00:16
All model versions have been created successfully
[1/1] staging.seed evaluated in 9.57s
[1/1] staging.test5 evaluated in 17.24s
Evaluating models ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 2/2 • 0:00:26
All model batches have been executed successfully
staging.seed promoted
staging.test5 promoted
Virtually Updating 'prod' ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 0:00:02
The target environment has been updated successfully
user@mac ~/D/sqlmesh-example> sqlmesh plan -v
No differences when compared to `prod`
Models needing backfill (missing dates):
└── staging.test5: 2024-08-03 - 2024-08-04
Apply - Backfill Tables [y/n]: y
staging.test5 created
staging.seed created
Creating physical table ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 2/2 • 0:00:02
All model versions have been created successfully
[1/1] staging.test5 evaluated in 11.82s
Evaluating models ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 1/1 • 0:00:11
All model batches have been executed successfully
Virtually Updating 'prod' ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0% • 0:00:14
The target environment has been updated successfully
user@mac ~/D/sqlmesh-example> sqlmesh plan -v
No differences when compared to `prod`
Models needing backfill (missing dates):
└── staging.test5: 2024-08-03 - 2024-08-04
Apply - Backfill Tables [y/n]:
The text was updated successfully, but these errors were encountered:
refactor of how lookback works. the current implementation has some
weird interactions with cron that makes non standard crons and lookback
always backfill no matter what.
this refactors missing_intervals to only check for lookback when there
are any missing intervals to begin with, otherwise we don't bother with
lookback.
When I re-apply the same plan, a model with a custom cron expression (not @daily) should not re-run backfills for lookback intervals, but it does so.
I can reproduce it with this setup (BigQuery, sqlmesh 0.115.1):
CSV test data:
The command sequence and outputs:
The text was updated successfully, but these errors were encountered: