kevinjqliu commented on code in PR #2083: URL: https://github.com/apache/iceberg-python/pull/2083#discussion_r2143166053
########## pyiceberg/catalog/glue.py: ########## @@ -680,13 +680,19 @@ def drop_namespace(self, namespace: Union[str, Identifier]) -> None: """ database_name = self.identifier_to_database(namespace, NoSuchNamespaceError) try: - table_list = self.list_tables(namespace=database_name) - except NoSuchNamespaceError as e: + table_list_response = self.glue.get_tables(DatabaseName=database_name) + table_list = table_list_response["TableList"] + except self.glue.exceptions.EntityNotFoundException as e: Review Comment: `self.glue.exceptions.EntityNotFoundException` mirrors the `list_tables` implementation https://github.com/apache/iceberg-python/blob/26829ff4e17d466bfb3afae615ca87c0fcf7c5d3/pyiceberg/catalog/glue.py#L725-L726 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org