From bc7ed1c3ad2f55be4a0b6a9c67aff7401de3be6f Mon Sep 17 00:00:00 2001 From: Drew Gallardo Date: Wed, 24 Jan 2024 17:53:56 -0800 Subject: [PATCH] Remove redundant API call to Glue (#300) --- pyiceberg/catalog/glue.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyiceberg/catalog/glue.py b/pyiceberg/catalog/glue.py index bccbfa4f0a..645568f80a 100644 --- a/pyiceberg/catalog/glue.py +++ b/pyiceberg/catalog/glue.py @@ -597,7 +597,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) @@ -624,7 +623,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: