Skip to content

Commit

Permalink
Remove redundant API call to Glue (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
geruh authored Jan 25, 2024
1 parent 4391919 commit bc7ed1c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyiceberg/catalog/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit bc7ed1c

Please sign in to comment.