This is an automated email from the ASF dual-hosted git repository.
honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new d5b51f9e fix: list_tables method in glue catalog now only return
tables. (#1258)
d5b51f9e is described below
commit d5b51f9eb14c6d8b8547b9bcdd3ec3059bdf3236
Author: Om Kenge <[email protected]>
AuthorDate: Thu Oct 31 12:39:07 2024 +0530
fix: list_tables method in glue catalog now only return tables. (#1258)
* fix: list_tables method only return tables
* Update pyiceberg/catalog/glue.py
Co-authored-by: Honah J. <[email protected]>
---------
Co-authored-by: Honah J. <[email protected]>
---
pyiceberg/catalog/glue.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyiceberg/catalog/glue.py b/pyiceberg/catalog/glue.py
index 5c7b1ddc..79850dbb 100644
--- a/pyiceberg/catalog/glue.py
+++ b/pyiceberg/catalog/glue.py
@@ -784,4 +784,4 @@ class GlueCatalog(MetastoreCatalog):
@staticmethod
def __is_iceberg_table(table: TableTypeDef) -> bool:
- return table["Parameters"] is not None and
table["Parameters"][TABLE_TYPE].lower() == ICEBERG
+ return table.get("Parameters", {}).get("table_type", "").lower() ==
ICEBERG