@@ -289,15 +289,15 @@ def _convert_hive_into_iceberg(self, table: HiveTable) -> Table:
289289 file = io .new_input (metadata_location )
290290 metadata = FromInputFile .table_metadata (file )
291291 return Table (
292- identifier = (self . name , table .dbName , table .tableName ),
292+ identifier = (table .dbName , table .tableName ),
293293 metadata = metadata ,
294294 metadata_location = metadata_location ,
295295 io = self ._load_file_io (metadata .properties , metadata_location ),
296296 catalog = self ,
297297 )
298298
299299 def _convert_iceberg_into_hive (self , table : Table ) -> HiveTable :
300- identifier_tuple = self .identifier_to_tuple_without_catalog (table .identifier )
300+ identifier_tuple = self ._identifier_to_tuple_without_catalog (table .identifier )
301301 database_name , table_name = self .identifier_to_database_and_table (identifier_tuple , NoSuchTableError )
302302 current_time_millis = int (time .time () * 1000 )
303303
@@ -431,7 +431,7 @@ def _commit_table(self, table_request: CommitTableRequest) -> CommitTableRespons
431431 NoSuchTableError: If a table with the given identifier does not exist.
432432 CommitFailedException: Requirement not met, or a conflict with a concurrent commit.
433433 """
434- identifier_tuple = self .identifier_to_tuple_without_catalog (
434+ identifier_tuple = self ._identifier_to_tuple_without_catalog (
435435 tuple (table_request .identifier .namespace .root + [table_request .identifier .name ])
436436 )
437437 database_name , table_name = self .identifier_to_database_and_table (identifier_tuple , NoSuchTableError )
@@ -477,7 +477,7 @@ def _commit_table(self, table_request: CommitTableRequest) -> CommitTableRespons
477477 # Table does not exist, create it.
478478 hive_table = self ._convert_iceberg_into_hive (
479479 StagedTable (
480- identifier = (self . name , database_name , table_name ),
480+ identifier = (database_name , table_name ),
481481 metadata = updated_staged_table .metadata ,
482482 metadata_location = updated_staged_table .metadata_location ,
483483 io = updated_staged_table .io ,
@@ -509,7 +509,7 @@ def load_table(self, identifier: Union[str, Identifier]) -> Table:
509509 Raises:
510510 NoSuchTableError: If a table with the name does not exist, or the identifier is invalid.
511511 """
512- identifier_tuple = self .identifier_to_tuple_without_catalog (identifier )
512+ identifier_tuple = self ._identifier_to_tuple_without_catalog (identifier )
513513 database_name , table_name = self .identifier_to_database_and_table (identifier_tuple , NoSuchTableError )
514514
515515 with self ._client as open_client :
@@ -526,7 +526,7 @@ def drop_table(self, identifier: Union[str, Identifier]) -> None:
526526 Raises:
527527 NoSuchTableError: If a table with the name does not exist, or the identifier is invalid.
528528 """
529- identifier_tuple = self .identifier_to_tuple_without_catalog (identifier )
529+ identifier_tuple = self ._identifier_to_tuple_without_catalog (identifier )
530530 database_name , table_name = self .identifier_to_database_and_table (identifier_tuple , NoSuchTableError )
531531 try :
532532 with self ._client as open_client :
@@ -554,7 +554,7 @@ def rename_table(self, from_identifier: Union[str, Identifier], to_identifier: U
554554 NoSuchTableError: When a table with the name does not exist.
555555 NoSuchNamespaceError: When the destination namespace doesn't exist.
556556 """
557- from_identifier_tuple = self .identifier_to_tuple_without_catalog (from_identifier )
557+ from_identifier_tuple = self ._identifier_to_tuple_without_catalog (from_identifier )
558558 from_database_name , from_table_name = self .identifier_to_database_and_table (from_identifier_tuple , NoSuchTableError )
559559 to_database_name , to_table_name = self .identifier_to_database_and_table (to_identifier )
560560 try :
0 commit comments