Skip to content

Commit b2e16e9

Browse files
committed
wip
1 parent 7525c9c commit b2e16e9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pyiceberg/table/update/snapshot.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,7 @@ def _copy_with_new_status(entry: ManifestEntry, status: ManifestEntryStatus) ->
471471

472472
# Rewrite the manifest
473473
if len(existing_entries) > 0:
474-
with write_manifest(
475-
format_version=self._transaction.table_metadata.format_version,
476-
spec=self._transaction.table_metadata.specs()[manifest_file.partition_spec_id],
477-
schema=self.schema(),
478-
output_file=self.new_manifest_output(),
479-
snapshot_id=self._snapshot_id,
480-
avro_compression=self._compression,
481-
) as writer:
474+
with self.new_manifest_writer(spec=self.spec(manifest_file.partition_spec_id)) as writer:
482475
for existing_entry in existing_entries:
483476
writer.add_entry(existing_entry)
484477
existing_manifests.append(writer.to_manifest_file())

0 commit comments

Comments
 (0)