@@ -1696,7 +1696,7 @@ def plan_files(self) -> Iterable[FileScanTask]:
1696
1696
1697
1697
manifests = [
1698
1698
manifest_file
1699
- for manifest_file in snapshot .manifests (self .io )
1699
+ for manifest_file in snapshot .manifests (self .io , snapshot . manifest_list )
1700
1700
if manifest_evaluators [manifest_file .partition_spec_id ](manifest_file )
1701
1701
]
1702
1702
@@ -2929,7 +2929,7 @@ def _existing_manifests(self) -> List[ManifestFile]:
2929
2929
if previous_snapshot is None :
2930
2930
raise ValueError (f"Snapshot could not be found: { self ._parent_snapshot_id } " )
2931
2931
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 ):
2933
2933
if manifest .has_added_files () or manifest .has_existing_files () or manifest .added_snapshot_id == self ._snapshot_id :
2934
2934
existing_manifests .append (manifest )
2935
2935
@@ -2980,7 +2980,7 @@ def _get_entries(manifest: ManifestFile) -> List[ManifestEntry]:
2980
2980
if entry .data_file .content == DataFileContent .DATA
2981
2981
]
2982
2982
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 ))
2984
2984
return list (chain (* list_of_entries ))
2985
2985
else :
2986
2986
return []
@@ -3372,7 +3372,7 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType:
3372
3372
3373
3373
entries = []
3374
3374
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 ):
3376
3376
for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
3377
3377
column_sizes = entry .data_file .column_sizes or {}
3378
3378
value_counts = entry .data_file .value_counts or {}
@@ -3534,7 +3534,7 @@ def update_partitions_map(
3534
3534
3535
3535
partitions_map : Dict [Tuple [str , Any ], Any ] = {}
3536
3536
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 ):
3538
3538
for entry in manifest .fetch_manifest_entry (io = self .tbl .io ):
3539
3539
partition = entry .data_file .partition
3540
3540
partition_record_dict = {
@@ -3612,7 +3612,7 @@ def _partition_summaries_to_rows(
3612
3612
specs = self .tbl .metadata .specs ()
3613
3613
manifests = []
3614
3614
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 ):
3616
3616
is_data_file = manifest .content == ManifestContent .DATA
3617
3617
is_delete_file = manifest .content == ManifestContent .DELETES
3618
3618
manifests .append ({
0 commit comments