@@ -1708,7 +1708,7 @@ def plan_files(self) -> Iterable[FileScanTask]:
17081708
17091709 manifests = [
17101710 manifest_file
1711- for manifest_file in snapshot .manifests (self .io )
1711+ for manifest_file in snapshot .manifests (self .io , snapshot . manifest_list )
17121712 if manifest_evaluators [manifest_file .partition_spec_id ](manifest_file )
17131713 ]
17141714
@@ -2941,7 +2941,7 @@ def _existing_manifests(self) -> List[ManifestFile]:
29412941 if previous_snapshot is None :
29422942 raise ValueError (f"Snapshot could not be found: { self ._parent_snapshot_id } " )
29432943
2944- for manifest in previous_snapshot .manifests (io = self ._io ):
2944+ for manifest in previous_snapshot .manifests (io = self ._io , manifest_list = previous_snapshot . manifest_list ):
29452945 if manifest .has_added_files () or manifest .has_existing_files () or manifest .added_snapshot_id == self ._snapshot_id :
29462946 existing_manifests .append (manifest )
29472947
@@ -2992,7 +2992,7 @@ def _get_entries(manifest: ManifestFile) -> List[ManifestEntry]:
29922992 if entry .data_file .content == DataFileContent .DATA
29932993 ]
29942994
2995- list_of_entries = executor .map (_get_entries , previous_snapshot .manifests (self ._io ))
2995+ list_of_entries = executor .map (_get_entries , previous_snapshot .manifests (self ._io , previous_snapshot . manifest_list ))
29962996 return list (chain (* list_of_entries ))
29972997 else :
29982998 return []
@@ -3384,7 +3384,7 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType:
33843384
33853385 entries = []
33863386 snapshot = self ._get_snapshot (snapshot_id )
3387- for manifest in snapshot .manifests (self .tbl .io ):
3387+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
33883388 for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
33893389 column_sizes = entry .data_file .column_sizes or {}
33903390 value_counts = entry .data_file .value_counts or {}
@@ -3546,7 +3546,7 @@ def update_partitions_map(
35463546
35473547 partitions_map : Dict [Tuple [str , Any ], Any ] = {}
35483548 snapshot = self ._get_snapshot (snapshot_id )
3549- for manifest in snapshot .manifests (self .tbl .io ):
3549+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
35503550 for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
35513551 partition = entry .data_file .partition
35523552 partition_record_dict = {
@@ -3624,7 +3624,7 @@ def _partition_summaries_to_rows(
36243624 specs = self .tbl .metadata .specs ()
36253625 manifests = []
36263626 if snapshot := self .tbl .metadata .current_snapshot ():
3627- for manifest in snapshot .manifests (self .tbl .io ):
3627+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
36283628 is_data_file = manifest .content == ManifestContent .DATA
36293629 is_delete_file = manifest .content == ManifestContent .DELETES
36303630 manifests .append ({
0 commit comments