Skip to content

Commit 6e3ab87

Browse files
committed
ident correctly
1 parent 1241215 commit 6e3ab87

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pyiceberg/table/update/snapshot.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -633,14 +633,7 @@ def _existing_manifests(self) -> list[ManifestFile]:
633633
continue
634634

635635
# We have to rewrite the manifest file without the deleted data files
636-
with write_manifest(
637-
format_version=self._transaction.table_metadata.format_version,
638-
spec=self.spec(manifest_file.partition_spec_id),
639-
schema=self.schema(),
640-
output_file=self.new_manifest_output(),
641-
snapshot_id=self._snapshot_id,
642-
avro_compression=self._compression,
643-
) as writer:
636+
with self.new_manifest_writer(self.spec(manifest_file.partition_spec_id)) as writer:
644637
for entry in entries_to_write:
645638
writer.add_entry(
646639
ManifestEntry.from_args(
@@ -651,7 +644,7 @@ def _existing_manifests(self) -> list[ManifestFile]:
651644
data_file=entry.data_file,
652645
)
653646
)
654-
existing_files.append(writer.to_manifest_file())
647+
existing_files.append(writer.to_manifest_file())
655648

656649
return existing_files
657650

0 commit comments

Comments
 (0)