Skip to content

Commit 641c7ec

Browse files
kevinjqliuclaude
andcommitted
Hive: Name the Hive versions that lack get_table_req
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 0fb0179 commit 641c7ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pyiceberg/catalog/hive.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def _create_hive_table(self, open_client: Client, hive_table: HiveTable) -> None
384384
raise TableAlreadyExistsError(f"Table {hive_table.dbName}.{hive_table.tableName} already exists") from e
385385

386386
def _fetch_hive_table(self, open_client: Client, database_name: str, table_name: str) -> HiveTable:
387-
# Hive 4.0.1 removed get_table, and Hive 2 does not have get_table_req
387+
# Hive 4.0.1 removed get_table, and Hive 2.2 and older do not have get_table_req
388388
if self._hive2_compatible:
389389
return open_client.get_table(dbname=database_name, tbl_name=table_name)
390390
return open_client.get_table_req(GetTableRequest(dbName=database_name, tblName=table_name)).table

0 commit comments

Comments
 (0)