@@ -1696,7 +1696,7 @@ def plan_files(self) -> Iterable[FileScanTask]:
16961696
16971697 manifests = [
16981698 manifest_file
1699- for manifest_file in snapshot .manifests (self .io )
1699+ for manifest_file in snapshot .manifests (self .io , snapshot . manifest_list )
17001700 if manifest_evaluators [manifest_file .partition_spec_id ](manifest_file )
17011701 ]
17021702
@@ -2929,7 +2929,7 @@ def _existing_manifests(self) -> List[ManifestFile]:
29292929 if previous_snapshot is None :
29302930 raise ValueError (f"Snapshot could not be found: { self ._parent_snapshot_id } " )
29312931
2932- for manifest in previous_snapshot .manifests (io = self ._io ):
2932+ for manifest in previous_snapshot .manifests (io = self ._io , manifest_list = previous_snapshot . manifest_list ):
29332933 if manifest .has_added_files () or manifest .has_existing_files () or manifest .added_snapshot_id == self ._snapshot_id :
29342934 existing_manifests .append (manifest )
29352935
@@ -2980,7 +2980,7 @@ def _get_entries(manifest: ManifestFile) -> List[ManifestEntry]:
29802980 if entry .data_file .content == DataFileContent .DATA
29812981 ]
29822982
2983- list_of_entries = executor .map (_get_entries , previous_snapshot .manifests (self ._io ))
2983+ list_of_entries = executor .map (_get_entries , previous_snapshot .manifests (self ._io , previous_snapshot . manifest_list ))
29842984 return list (chain (* list_of_entries ))
29852985 else :
29862986 return []
@@ -3372,7 +3372,7 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType:
33723372
33733373 entries = []
33743374 snapshot = self ._get_snapshot (snapshot_id )
3375- for manifest in snapshot .manifests (self .tbl .io ):
3375+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
33763376 for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
33773377 column_sizes = entry .data_file .column_sizes or {}
33783378 value_counts = entry .data_file .value_counts or {}
@@ -3534,7 +3534,7 @@ def update_partitions_map(
35343534
35353535 partitions_map : Dict [Tuple [str , Any ], Any ] = {}
35363536 snapshot = self ._get_snapshot (snapshot_id )
3537- for manifest in snapshot .manifests (self .tbl .io ):
3537+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
35383538 for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
35393539 partition = entry .data_file .partition
35403540 partition_record_dict = {
@@ -3612,7 +3612,7 @@ def _partition_summaries_to_rows(
36123612 specs = self .tbl .metadata .specs ()
36133613 manifests = []
36143614 if snapshot := self .tbl .metadata .current_snapshot ():
3615- for manifest in snapshot .manifests (self .tbl .io ):
3615+ for manifest in snapshot .manifests (self .tbl .io , snapshot . manifest_list ):
36163616 is_data_file = manifest .content == ManifestContent .DATA
36173617 is_delete_file = manifest .content == ManifestContent .DELETES
36183618 manifests .append ({
0 commit comments