@@ -278,6 +278,7 @@ def demote(
278278 target_snapshots : t .Iterable [Snapshot ],
279279 environment_naming_info : EnvironmentNamingInfo ,
280280 snapshots : t .Optional [t .Dict [SnapshotId , Snapshot ]] = None ,
281+ table_mapping : t .Optional [t .Dict [str , str ]] = None ,
281282 deployability_index : t .Optional [DeployabilityIndex ] = None ,
282283 on_complete : t .Optional [t .Callable [[SnapshotInfoLike ], None ]] = None ,
283284 ) -> None :
@@ -292,7 +293,12 @@ def demote(
292293 concurrent_apply_to_snapshots (
293294 target_snapshots ,
294295 lambda s : self ._demote_snapshot (
295- s , environment_naming_info , snapshots , deployability_index , on_complete
296+ s ,
297+ environment_naming_info ,
298+ snapshots ,
299+ table_mapping ,
300+ deployability_index ,
301+ on_complete ,
296302 ),
297303 self .ddl_concurrent_tasks ,
298304 )
@@ -1018,6 +1024,7 @@ def _demote_snapshot(
10181024 snapshot : Snapshot ,
10191025 environment_naming_info : EnvironmentNamingInfo ,
10201026 snapshots : t .Optional [t .Dict [SnapshotId , Snapshot ]],
1027+ table_mapping : t .Optional [t .Dict [str , str ]],
10211028 deployability_index : t .Optional [DeployabilityIndex ],
10221029 on_complete : t .Optional [t .Callable [[SnapshotInfoLike ], None ]],
10231030 ) -> None :
@@ -1035,8 +1042,8 @@ def _demote_snapshot(
10351042 adapter .session (
10361043 snapshot .model .render_session_properties (
10371044 engine_adapter = adapter ,
1038- snapshots = snapshots ,
10391045 deployability_index = deployability_index ,
1046+ table_mapping = table_mapping ,
10401047 runtime_stage = RuntimeStage .DEMOTING ,
10411048 )
10421049 ),
0 commit comments