@@ -968,10 +968,13 @@ def start_promotion_progress(
968968 "Updating virtual layer " , self .console , justify = "left"
969969 )
970970
971+ snapshots_with_virtual_views = [
972+ s for s in snapshots if s .is_model and not s .is_symbolic
973+ ]
971974 self .promotion_progress .start ()
972975 self .promotion_task = self .promotion_progress .add_task (
973976 f"Virtually updating { environment_naming_info .name } ..." ,
974- total = len (snapshots ),
977+ total = len (snapshots_with_virtual_views ),
975978 )
976979
977980 # determine name column widths if we're printing names
@@ -984,15 +987,20 @@ def start_promotion_progress(
984987 dialect = self .dialect ,
985988 )
986989 )
987- for snapshot in snapshots
990+ for snapshot in snapshots_with_virtual_views
988991 )
989992
990993 self .environment_naming_info = environment_naming_info
991994 self .default_catalog = default_catalog
992995
993996 def update_promotion_progress (self , snapshot : SnapshotInfoLike , promoted : bool ) -> None :
994997 """Update the snapshot promotion progress."""
995- if self .promotion_progress is not None and self .promotion_task is not None :
998+ if (
999+ self .promotion_progress is not None
1000+ and self .promotion_task is not None
1001+ and snapshot .is_model
1002+ and not snapshot .is_symbolic
1003+ ):
9961004 if self .verbosity >= Verbosity .VERBOSE :
9971005 display_name = snapshot .display_name (
9981006 self .environment_naming_info ,
@@ -1007,9 +1015,7 @@ def update_promotion_progress(self, snapshot: SnapshotInfoLike, promoted: bool)
10071015 else "[green]created[/green]"
10081016 )
10091017 action_str = action_str or "[red]dropped[/red]"
1010- self .promotion_progress .live .console .print (
1011- f"{ snapshot .display_name (self .environment_naming_info , self .default_catalog if self .verbosity < Verbosity .VERY_VERBOSE else None , dialect = self .dialect ).ljust (self .PROGRESS_BAR_COLUMN_WIDTHS ['name' ])} { action_str .ljust (7 )} "
1012- )
1018+ self .promotion_progress .live .console .print (f"{ display_name } { action_str } " )
10131019 self .promotion_progress .update (self .promotion_task , refresh = True , advance = 1 )
10141020
10151021 def stop_promotion_progress (self , success : bool = True ) -> None :
0 commit comments