Skip to content

Commit bc7ed1c

Browse files
authored
Remove redundant API call to Glue (#300)
1 parent 4391919 commit bc7ed1c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pyiceberg/catalog/glue.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ def list_tables(self, namespace: Union[str, Identifier]) -> List[Identifier]:
597597
table_list: List[TableTypeDef] = []
598598
next_token: Optional[str] = None
599599
try:
600-
table_list_response = self.glue.get_tables(DatabaseName=database_name)
601600
while True:
602601
table_list_response = (
603602
self.glue.get_tables(DatabaseName=database_name)
@@ -624,7 +623,6 @@ def list_namespaces(self, namespace: Union[str, Identifier] = ()) -> List[Identi
624623
return []
625624

626625
database_list: List[DatabaseTypeDef] = []
627-
databases_response = self.glue.get_databases()
628626
next_token: Optional[str] = None
629627

630628
while True:

0 commit comments

Comments
 (0)