From 6b14f0ff5fb928567f58b8ec309b831db83592d7 Mon Sep 17 00:00:00 2001 From: Drew Gallardo Date: Mon, 22 Jan 2024 00:26:57 -0800 Subject: [PATCH] Remove redundant API call to Glue --- pyiceberg/catalog/glue.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyiceberg/catalog/glue.py b/pyiceberg/catalog/glue.py index 6cf9462b71..d7ceae8288 100644 --- a/pyiceberg/catalog/glue.py +++ b/pyiceberg/catalog/glue.py @@ -490,7 +490,6 @@ def list_tables(self, namespace: Union[str, Identifier]) -> List[Identifier]: table_list: List[TableTypeDef] = [] next_token: Optional[str] = None try: - table_list_response = self.glue.get_tables(DatabaseName=database_name) while True: table_list_response = ( self.glue.get_tables(DatabaseName=database_name) @@ -517,7 +516,6 @@ def list_namespaces(self, namespace: Union[str, Identifier] = ()) -> List[Identi return [] database_list: List[DatabaseTypeDef] = [] - databases_response = self.glue.get_databases() next_token: Optional[str] = None while True: