@@ -88,7 +88,7 @@ def _new_manifest_file_name(num: int, commit_uuid: uuid.UUID) -> str:
8888 return f"{ commit_uuid } -m{ num } .avro"
8989
9090
91- def _generate_manifest_list_file_name (snapshot_id : int , attempt : int , commit_uuid : uuid .UUID ) -> str :
91+ def _new_manifest_list_file_name (snapshot_id : int , attempt : int , commit_uuid : uuid .UUID ) -> str :
9292 # Mimics the behavior in Java:
9393 # https://github.com/apache/iceberg/blob/c862b9177af8e2d83122220764a056f3b96fd00c/core/src/main/java/org/apache/iceberg/SnapshotProducer.java#L491
9494 return f"snap-{ snapshot_id } -{ attempt } -{ commit_uuid } .avro"
@@ -245,12 +245,12 @@ def _commit(self) -> UpdatesAndRequirements:
245245 summary = self ._summary (self .snapshot_properties )
246246 table_location = self ._transaction .table_metadata .location
247247 properties = self ._transaction .table_metadata .properties
248- file_name = _generate_manifest_list_file_name (
248+ file_name = _new_manifest_list_file_name (
249249 snapshot_id = self ._snapshot_id ,
250250 attempt = 0 ,
251251 commit_uuid = self .commit_uuid ,
252252 )
253- manifest_list_file_path = self ._transaction ._table .metadata_file_location (table_location , file_name , properties )
253+ manifest_list_file_path = self ._transaction ._table .new_metadata_location (table_location , file_name , properties )
254254 with write_manifest_list (
255255 format_version = self ._transaction .table_metadata .format_version ,
256256 output_file = self ._io .new_output (manifest_list_file_path ),
@@ -299,7 +299,7 @@ def new_manifest_output(self) -> OutputFile:
299299 table_location = self ._transaction .table_metadata .location
300300 properties = self ._transaction .table_metadata .properties
301301 file_name = _new_manifest_file_name (num = next (self ._manifest_num_counter ), commit_uuid = self .commit_uuid )
302- file_path = self ._transaction ._table .metadata_file_location (table_location , file_name , properties )
302+ file_path = self ._transaction ._table .new_metadata_location (table_location , file_name , properties )
303303 return self ._io .new_output (file_path )
304304
305305 def fetch_manifest_entry (self , manifest : ManifestFile , discard_deleted : bool = True ) -> List [ManifestEntry ]:
0 commit comments