Skip to content

Commit b57d0a7

Browse files
committed
remove update env step
1 parent c6c1b02 commit b57d0a7

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

sqlmesh/core/plan/explainer.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ def evaluate(
126126
)
127127
)
128128

129-
steps.append(UpdateEnvironmentRecordStep())
130-
131129
if snapshots_with_schema_migration:
132130
steps.append(MigrateSchemasStep(snapshots=snapshots_with_schema_migration))
133131

@@ -245,11 +243,6 @@ class BackfillStep:
245243
before_promote: bool = True
246244

247245

248-
@dataclass
249-
class UpdateEnvironmentRecordStep:
250-
pass
251-
252-
253246
@dataclass
254247
class MigrateSchemasStep:
255248
snapshots: t.List[Snapshot]
@@ -269,7 +262,6 @@ class UpdateVirtualLayerStep:
269262
AuditOnlyRunStep,
270263
RestatementStep,
271264
BackfillStep,
272-
UpdateEnvironmentRecordStep,
273265
MigrateSchemasStep,
274266
UpdateVirtualLayerStep,
275267
]
@@ -359,7 +351,7 @@ def visit_audit_only_run_step(self, step: AuditOnlyRunStep) -> Tree:
359351
return tree
360352

361353
def visit_restatement_step(self, step: RestatementStep) -> Tree:
362-
tree = Tree("[bold]Delete intervals for models as part of restatement[/bold]")
354+
tree = Tree("[bold]Invalidate data intervals as part of restatement[/bold]")
363355
for snapshot_table_info, interval in step.snapshot_intervals.items():
364356
display_name = self._display_name(snapshot_table_info)
365357
tree.add(f"{display_name} [{to_ts(interval[0])} - {to_ts(interval[1])}]")
@@ -405,9 +397,6 @@ def visit_backfill_step(self, step: BackfillStep) -> Tree:
405397
tree.add(f"{display_name} \[standalone audit]")
406398
return tree
407399

408-
def visit_update_environment_record_step(self, step: UpdateEnvironmentRecordStep) -> Tree:
409-
return Tree("[bold]Reflect environment changes in the metadata state[/bold]")
410-
411400
def visit_migrate_schemas_step(self, step: MigrateSchemasStep) -> Tree:
412401
tree = Tree(
413402
"[bold]Update schemas of production physical tables to reflect forward-only changes[/bold]"

0 commit comments

Comments
 (0)