File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ def _should_create(s: Snapshot) -> bool:
290290 for error in ex .errors :
291291 logger .info (str (error ), exc_info = error )
292292
293+ self .console .log_skipped_models ({s .name for s in ex .skipped })
293294 self .console .log_failed_models (ex .errors )
294295
295296 raise PlanError ("Plan application failed." )
Original file line number Diff line number Diff line change 8989
9090
9191class SnapshotCreationFailedError (SQLMeshError ):
92- def __init__ (self , errors : t .List [NodeExecutionFailedError [SnapshotId ]]):
92+ def __init__ (
93+ self , errors : t .List [NodeExecutionFailedError [SnapshotId ]], skipped : t .List [SnapshotId ]
94+ ):
9395 messages = "\n \n " .join (f"{ error } \n { error .__cause__ } " for error in errors )
9496 super ().__init__ (f"Physical table creation failed:\n \n { messages } " )
9597 self .errors = errors
98+ self .skipped = skipped
9699
97100
98101class SnapshotEvaluator :
@@ -380,7 +383,7 @@ def _create_snapshots(
380383 ) -> None :
381384 """Internal method to create tables in parallel."""
382385 with self .concurrent_context ():
383- errors , _ = concurrent_apply_to_snapshots (
386+ errors , skipped = concurrent_apply_to_snapshots (
384387 snapshots_to_create ,
385388 lambda s : self ._create_snapshot (
386389 s ,
@@ -394,7 +397,7 @@ def _create_snapshots(
394397 raise_on_error = False ,
395398 )
396399 if errors :
397- raise SnapshotCreationFailedError (errors )
400+ raise SnapshotCreationFailedError (errors , skipped )
398401
399402 def migrate (
400403 self ,
You can’t perform that action at this time.
0 commit comments